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/9f7eae15d3e7d9f2e6879325556059e2311eb5a5?ds=sidebyside Widget small UI fix. --- 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'); + }) } );