r105719 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105718‎ | r105719 | r105720 >
Date:21:04, 9 December 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Fix focus/select bug in link inspector
Modified paths:
  • /trunk/extensions/VisualEditor/modules/es/inspectors/es.LinkInspector.js (modified) (history)

Diff [purge]

Index: trunk/extensions/VisualEditor/modules/es/inspectors/es.LinkInspector.js
@@ -56,7 +56,10 @@
5757 } else {
5858 this.$locationInput.val( '' );
5959 }
60 - this.$locationInput.focus();
 60+ var _this = this;
 61+ setTimeout( function() {
 62+ _this.$locationInput.focus().select();
 63+ }, 0 );
6164 };
6265
6366 es.LinkInspector.prototype.onClose = function() {

Status & tagging log