You will find only what you bring in.
[redakcja.git] / src / redakcja / static / js / wiki / toolbar.js
index 3eafdae..9f4272e 100644 (file)
             });
         });
 
-        $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);