From 9f7eae15d3e7d9f2e6879325556059e2311eb5a5 Mon Sep 17 00:00:00 2001 From: Lukasz Anwajler Date: Wed, 1 Sep 2010 04:48:04 -0500 Subject: [PATCH 1/1] 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