Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 364: | Line 364: | ||
// } | // } | ||
− | function collapseAll() { | + | // function collapseAll() { |
− | + | // $(".mw-collapsible").addClass("mw-collapsed").reload(); | |
− | + | // $( ".mw-collapsible" ).load(window.location.href + " .mw-collapsible" ); | |
− | } | + | // } |
$(document).ready(function(){ | $(document).ready(function(){ | ||
Line 375: | Line 375: | ||
}); | }); | ||
− | $(document).on('click', '.DoFirst', function() { | + | // $(document).on('click', '.DoFirst', function() { |
− | + | // $('#totalItems, #enteredItems').keyup(function(){ | |
− | + | // collapseAll() | |
− | + | // }); | |
− | + | // collapseAll() | |
− | }); | + | // }); |
− | $(document).on( function() { | + | // $(document).on( function() { |
− | + | // $('#totalItems, #enteredItems').keyup(function(){ | |
− | + | // collapseAll() | |
− | + | // }); | |
− | + | // collapseAll() | |
− | }); | + | // }); |
// function moveSidebarToBody() { | // function moveSidebarToBody() { | ||
Line 420: | Line 420: | ||
} | } | ||
− | if ( event.which === 89 ) { | + | // if ( event.which === 89 ) { |
− | + | // $(document).on( function() { | |
− | + | // $('#totalItems, #enteredItems').keyup(function(){ | |
− | + | // collapseAll() | |
− | + | // }); | |
− | + | // collapseAll() | |
− | + | // }); | |
− | } | + | // } |
} | } | ||
Revision as of 00:10, 13 March 2021