Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 363: | Line 363: | ||
$(".mw-collapsible").addClass("mw-collapsed").reload(); | $(".mw-collapsible").addClass("mw-collapsed").reload(); | ||
} | } | ||
+ | |||
+ | $(document).on( function() { | ||
+ | $('#totalItems, #enteredItems').keyup(function(){ | ||
+ | collapseAll() | ||
+ | }); | ||
+ | collapseAll() | ||
+ | }); | ||
// function moveSidebarToBody() { | // function moveSidebarToBody() { | ||
Line 396: | Line 403: | ||
if ( event.which === 89 ) { | if ( event.which === 89 ) { | ||
− | $(document). | + | $(document).on( function() { |
$('#totalItems, #enteredItems').keyup(function(){ | $('#totalItems, #enteredItems').keyup(function(){ | ||
collapseAll() | collapseAll() |
Revision as of 23:51, 12 March 2021