From: Lukasz Anwajler Date: Wed, 1 Sep 2010 09:48:04 +0000 (-0500) Subject: Widget small UI fix. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/20dab67292ee0df4c1873b5277318f00c423598c?ds=sidebyside;hp=--cc Widget small UI fix. --- 20dab67292ee0df4c1873b5277318f00c423598c 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'); + }) } );