X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/434a8ca0e146d0ad9514978fffec916c90fb7542..df341bdd09208d2b0f84060454cc0000df19deba:/src/redakcja/static/js/wiki/toolbar.js diff --git a/src/redakcja/static/js/wiki/toolbar.js b/src/redakcja/static/js/wiki/toolbar.js index 3eafdae6..9f4272ee 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,4 @@ }; -})(jQuery); \ No newline at end of file +})(jQuery);