Просмотр исходного кода

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

Talha Mansoor лет назад: 11
Родитель
Сommit
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;
             })