X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/817bf41b9e130a6a56a3a06124186c06f7e87ada..5b4d95336fc553b86811abf3a6c0c0607a46faab:/wolnelektury/static/js/catalogue.js diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 1d90e1084..cb31654c9 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -464,13 +464,27 @@ function serverTime() { $('.widget-code').focus( function(){ - $(this).animate({rows: '11'}, 100) + $(this).animate({rows: '11'}, 100, function(){ + this.select(); + $(this).click(function(){ + this.select(); + }); + }) + } ).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)