r92100 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r92099‎ | r92100 | r92101 >
Date:21:11, 13 July 2011
Author:inez
Status:deferred
Tags:
Comment:
Focus input box only if not focused yet - this way we prevent event focus being fired constantly
Modified paths:
  • /trunk/parsers/wikidom/lib/es/es.Surface.js (modified) (history)

Diff [purge]

Index: trunk/parsers/wikidom/lib/es/es.Surface.js
@@ -183,7 +183,9 @@
184184 this.cursor.show();
185185 }
186186 this.initialHorizontalCursorPosition = null;
187 - this.$input.focus();
 187+ if ( !this.$input.is(':focus') ) {
 188+ this.$input.focus();
 189+ }
188190 return false;
189191 };
190192

Status & tagging log