X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..8e8b2c44fc1345b2b4ae2806f2ef5f2187d760c0:/src/redakcja/static/js/wiki/toolbar.js?ds=sidebyside diff --git a/src/redakcja/static/js/wiki/toolbar.js b/src/redakcja/static/js/wiki/toolbar.js index 3eafdae6..8e4c0f05 100644 --- a/src/redakcja/static/js/wiki/toolbar.js +++ b/src/redakcja/static/js/wiki/toolbar.js @@ -19,10 +19,10 @@ }); }); - $toolbar.children().filter('select').change(function(event){ + $('select', $toolbar).change(function(event){ var slug = $(this).val(); $container.scrollLeft(0); - $('*[data-group]').hide().filter('[data-group=' + slug + ']').show(); + $('*[data-group]').hide().filter('[data-group="' + slug + '"]').show(); }).change(); $('button.next', $toolbar).click(function() { @@ -57,4 +57,9 @@ }; -})(jQuery); \ No newline at end of file + + $("#keyboard-close").click(function() { + $(this).parent().toggle(); + }) + +})(jQuery);