$('#createNewShelf').show();
});
} catch (e){}
- $("#putOnShelf input[type=checkbox]").attr("checked",false);
var serverResponse;
$('form', hash.w).ajaxForm({
target: serverResponse,
// 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');