X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a1ea2966e73e96e9ea5a192320353e8863687b41..01a22232d4c5bfd6c496842f9cb19b64b6b01520:/wolnelektury/static/js/catalogue.js diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 510c543ce..3eb007470 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -464,7 +464,7 @@ function serverTime() { return false; }); - $('.sponsor-logos').cycle({timeout: 3000}); + //$('.sponsor-logos').cycle({timeout: 3000}); $('.widget-code').focus( function(){ @@ -501,11 +501,13 @@ function serverTime() { // we don't want to interact with "audiobook" label, just 'format' tabs var $this = $(this); $this.addClass("active"); - $("#"+$this.html().toLowerCase()+"-files").show(); + $("#"+$this.attr('data-format')+"-files").show(); }); $('.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');