4,656
edits
No edit summary |
No edit summary |
||
| Line 1,873: | Line 1,873: | ||
e.preventDefault(); | e.preventDefault(); | ||
var | var $btn = jQuery(this); | ||
var borderPref = $btn.hasClass("print-selection-no-border") | |||
? "without" | ? "without" | ||
: "with"; | : "with"; | ||
// 👇 add global "working" state | |||
document.body.classList.add("printing"); | |||
// optional: disable clicked button | |||
$btn.prop("disabled", true); | |||
swHandleBatchPrint(borderPref); | swHandleBatchPrint(borderPref); | ||