Преглед на файлове

Changes slideup and slidedown to show and hide (slow) animation to filter tag list

Talha Mansoor преди 11 години
родител
ревизия
949c159b3d
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      templates/tags.html

+ 3 - 3
templates/tags.html

@@ -20,10 +20,10 @@
                 if(filter) {
                     // this finds all links in a list that contain the input,
                     // and hide the ones not containing the input while showing the ones that do
-                    $('#list-of-tags').find("a:not(:Contains(" + filter + "))").parent().slideUp();
-                    $('#list-of-tags').find("a:Contains(" + filter + ")").parent().slideDown();
+                    $('#list-of-tags').find("a:not(:Contains(" + filter + "))").parent().hide('slow');
+                    $('#list-of-tags').find("a:Contains(" + filter + ")").parent().show('slow');
                     } else {
-                    $('#list-of-tags').find("li").slideDown();
+                    $('#list-of-tags').find("li").show('slow');
                 }
                 return false;
             })