Merge branch 'production'
[wolnelektury.git] / wolnelektury / static / js / catalogue.js
index 9679607..1eede5c 100644 (file)
@@ -469,7 +469,9 @@ function serverTime() {
         
         $('.book-list-index').click(function(){
             $('.book-list-show-index').hide('slow');
-            $(this).parent().next('ul').toggle('slow');
+            if($(this).parent().next('ul:not(:hidden)').length == 0){
+               $(this).parent().next('ul').toggle('slow');
+           }
             return false;
         });