fixes #814: 404 when no html
[wolnelektury.git] / wolnelektury / static / js / catalogue.js
index 1d90e10..cb31654 100644 (file)
@@ -464,13 +464,27 @@ function serverTime() {
 
         $('.widget-code').focus(
             function(){
 
         $('.widget-code').focus(
             function(){
-                $(this).animate({rows: '11'}, 100)
+                $(this).animate({rows: '11'}, 100, function(){
+                    this.select();
+                    $(this).click(function(){
+                        this.select();
+                    });
+                })
+                
             } 
         ).blur(
             function(){
             } 
         ).blur(
             function(){
-                $(this).animate({rows: '1'}, 300)
+                $(this).animate({rows: '1'}, 300, function(){
+                    $(this).unbind('click');
+                })
             } 
         );
             } 
         );
+        
+        $('.book-list-index').click(function(){
+            $('.book-list-show-index').hide('slow');
+            $(this).parent().next('ul').toggle('slow');
+            return false;
+        });
 
     });
 })(jQuery)
 
     });
 })(jQuery)