allura
修訂 | 7de9cfc0581ac596a105eabc245817010e40f354 (tree) |
---|---|
時間 | 2012-07-09 23:31:27 |
作者 | Yuriy <yuriyarhipovua@yand...> |
Commiter | Dave Brondsema |
[#1937] ticket:106 fixed link textbox selecting
@@ -307,10 +307,10 @@ class Post(HierWidget): | ||
307 | 307 | var popup = $('.shortlink_popup', post); |
308 | 308 | $('.shortlink', post).click(function(evt){ |
309 | 309 | evt.preventDefault(); |
310 | - popup.lightbox_me(); | |
311 | - $('input', popup).select(); | |
312 | - $('input', popup).click(function() { | |
313 | - this.select(); | |
310 | + popup.lightbox_me({ | |
311 | + onLoad: function() { | |
312 | + $('input', popup).select(); | |
313 | + } | |
314 | 314 | }); |
315 | 315 | }); |
316 | 316 | $('.close', popup).bind('click', function() { |