X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/28de2870cc094e3b5cbcf7eea54d3a4b7736e450..9e81b1b5ad1a11035710f32ab2af4f57b471d206:/wolnelektury/static/js/catalogue.js diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 9679607e5..7177c4c39 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -447,7 +447,7 @@ function serverTime() { return false; }); - $('.sponsors').cycle({timeout: 3000}); + //$('.sponsors').cycle({timeout: 3000}); $('.widget-code').focus( function(){ @@ -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; });