Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 334: | Line 334: | ||
// document.body.appendChild(document.getElementById('MySidebar')) | // document.body.appendChild(document.getElementById('MySidebar')) | ||
// } | // } | ||
+ | |||
+ | function collapseAll() { | ||
+ | $(".mw-collapsible").addClass("mw-collapsed"); | ||
+ | } | ||
$(document).ready( function() { | $(document).ready( function() { | ||
$('#totalItems, #enteredItems').keyup(function(){ | $('#totalItems, #enteredItems').keyup(function(){ | ||
− | checkUser() | + | checkUser() |
+ | collapseAll() | ||
// moveSidebarToBody() | // moveSidebarToBody() | ||
}); | }); | ||
− | checkUser() | + | checkUser() |
+ | collapseAll() | ||
// moveSidebarToBody() | // moveSidebarToBody() | ||
}); | }); |
Revision as of 21:58, 8 March 2021