MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1,873: Line 1,873:
         e.preventDefault();
         e.preventDefault();


         var borderPref = jQuery(this).hasClass("print-selection-no-border")
         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);

Navigation menu