X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/075fb07f19c2f20cd3b6818b973e7aebebdacc9f..b93544446c1afb2324e12cef0e670705893797cd:/wolnelektury/static/js/base.js?ds=sidebyside 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)