X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/bc0fb62d35eae0850d48e92bece1873664ca2410..b3b6cbc7a545af2f3fa6f04f9281fd994b2adea7:/wolnelektury/static/js/catalogue.js diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 9679607e5..1eede5c90 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -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; });