MediaWiki:Common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 1,306: Line 1,306:


   function updatePrintSelectionUI() {
   function updatePrintSelectionUI() {
     var activeCount = jQuery("#filters .values button.active").length;
     requestAnimationFrame(function () {
    console.log("updatePrintSelectionUI activeCount:", activeCount);
        var activeCount = jQuery("#filters .values button.active").length;
        console.log("updatePrintSelectionUI activeCount:", activeCount);


    if (activeCount > 0) {
        if (activeCount > 0) {
         jQuery("#print-selection-wrapper").show();
         jQuery("#print-selection-wrapper").show();
    } else {
        } else {
         jQuery("#print-selection-wrapper").hide();
         jQuery("#print-selection-wrapper").hide();
         jQuery("#print-selection-options").hide();
         jQuery("#print-selection-options").hide();
     }
        }
     });
   }
   }


Navigation menu