Difference between revisions of "Template:Sidebar"
Adelo Vieira (talk | contribs) |
Adelo Vieira (talk | contribs) |
||
Line 395: | Line 395: | ||
function collapseAll() { | function collapseAll() { | ||
− | $(".mw-collapsible").addClass("mw-collapsed") | + | $(".mw-collapsible").addClass("mw-collapsed") |
} | } | ||
− | $(document).keydown(function(event) { | + | // $(document).keydown(function(event) { |
− | + | // if ( event.ctrlKey ) { | |
− | + | // if ( event.which === 37 ) { // Check key codes here: https://css-tricks.com/snippets/javascript/javascript-keycodes/ | |
− | + | // $(document).ready( function() { | |
− | + | // $('#totalItems, #enteredItems').keyup(function(){ | |
− | + | // function collapseAll() | |
− | + | // }); | |
− | + | // function collapseAll() | |
− | + | // }); | |
− | + | // } | |
− | + | // } | |
− | }); | + | // }); |
// function moveSidebarToBody() { | // function moveSidebarToBody() { |
Revision as of 23:07, 12 March 2021