X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/4b6fc6dc545a10955094bfaa9448ba070cfb33bf..b07520a11332374de645ed22c74959afa8a4b7ed:/wolnelektury/static/js/base.js?ds=inline diff --git a/wolnelektury/static/js/base.js b/wolnelektury/static/js/base.js index 028ab33f4..51107fe8b 100755 --- a/wolnelektury/static/js/base.js +++ b/wolnelektury/static/js/base.js @@ -17,6 +17,15 @@ $('.open-player').click(function(event) { }); + $('.book-list-index').click(function(){ + $('.book-list-show-index').hide('slow'); + if($(this).parent().next('ul:not(:hidden)').length == 0){ + $(this).parent().next('ul').toggle('slow'); + } + return false; + }); + + }); })(jQuery)