4,656
edits
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1,867: | Line 1,867: | ||
// run filtered batch print | // run filtered batch print | ||
jQuery(document).on( | jQuery(document) | ||
.off("click.printSelectionFix") | |||
.on( | |||
"click.printSelectionFix", | |||
".print-selection-border, .print-selection-no-border", | |||
function (e) { | |||
e.preventDefault(); | e.preventDefault(); | ||
console.log(" | |||
console.log("NEW HANDLER RUNNING"); // 👈 debug | |||
var $btn = jQuery(this); | var $btn = jQuery(this); | ||
var borderPref = $btn.hasClass("print-selection-no-border") | var borderPref = $btn.hasClass("print-selection-no-border") | ||
? "without" | |||
: "with"; | |||
var originalText = $btn.text(); | var originalText = $btn.text(); | ||
$btn.text("[PREPARING]"); | $btn.text("[PREPARING]"); | ||
$btn.prop("disabled", true); | $btn.prop("disabled", true); | ||
$btn[0].offsetHeight; // force repaint | |||
hidePrintSelectionOptions(); | hidePrintSelectionOptions(); | ||
setTimeout(function () { | setTimeout(function () { | ||
swHandleBatchPrint(borderPref); | |||
$btn.text(originalText); | |||
$btn.prop("disabled", false); | |||
}, 200); | |||
}, | } | ||
); | |||
/* ---------- /Softwear PRINT ---------- */ | /* ---------- /Softwear PRINT ---------- */ | ||