X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/af544a7534db40bd650ac88fe5cf23cccf7b5b27..fc7af136491bcb8d56661f6e04419ef15623ae0b:/wolnelektury/static/js/catalogue.js diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index afcacef79..d9de589f1 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -505,7 +505,9 @@ function serverTime() { }); $('.audiobook-list').hide(); - $("#"+$(".audiotabs .active").html().toLowerCase()+"-files").show(); + if($(".audiotabs .active").length > 0) { + $("#"+$(".audiotabs .active").html().toLowerCase()+"-files").show(); + } /* this will be useful for javascript html player var medias = $('.audiobook-list a');