From 20dab67292ee0df4c1873b5277318f00c423598c Mon Sep 17 00:00:00 2001 From: Lukasz Anwajler Date: Wed, 1 Sep 2010 04:48:04 -0500 Subject: [PATCH] Widget small UI fix. --- wolnelektury/static/js/catalogue.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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'); + }) } ); -- 2.20.1