#1414: http301 for old-style tag urls,
[wolnelektury.git] / wolnelektury / static / js / catalogue.js
index afcacef..6715685 100644 (file)
@@ -391,7 +391,6 @@ function serverTime() {
                             $('#createNewShelf').show();
                         });
                 } catch (e){}
                             $('#createNewShelf').show();
                         });
                 } catch (e){}
-                $("#putOnShelf input[type=checkbox]").attr("checked",false);
                 var serverResponse;
                 $('form', hash.w).ajaxForm({
                     target: serverResponse,
                 var serverResponse;
                 $('form', hash.w).ajaxForm({
                     target: serverResponse,
@@ -505,7 +504,9 @@ function serverTime() {
         });
 
         $('.audiobook-list').hide();
         });
 
         $('.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');
         
         /* this will be useful for javascript html player
         var medias = $('.audiobook-list a');