X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/057604ab62f70f42fe0392ee32036be81ab52d9e..9f7eae15d3e7d9f2e6879325556059e2311eb5a5:/wolnelektury/static/js/catalogue.js?ds=sidebyside diff --git a/wolnelektury/static/js/catalogue.js b/wolnelektury/static/js/catalogue.js index 1d90e1084..4b09de8fd 100644 --- a/wolnelektury/static/js/catalogue.js +++ b/wolnelektury/static/js/catalogue.js @@ -464,11 +464,19 @@ 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'); + }) } );