r105711 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105710‎ | r105711 | r105712 >
Date:20:41, 9 December 2011
Author:tparscal
Status:deferred
Tags:
Comment:
Auto-focus on location input when opening the link inspector, auto focus on surface view input when closing
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
@@ -54,6 +54,7 @@
5555 if ( title !== null ) {
5656 this.$locationInput.val( title );
5757 }
 58+ this.$locationInput.focus();
5859 };
5960
6061 es.LinkInspector.prototype.onClose = function() {
@@ -75,6 +76,7 @@
7677 { 'type': 'link/internal', 'data': { 'title': title } }
7778 );
7879 surfaceModel.transact( set );
 80+ surfaceView.$input.focus();
7981 };
8082
8183 /* Inheritance */

Status & tagging log