r103951 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103950‎ | r103951 | r103952 >
Date:20:04, 22 November 2011
Author:neilk
Status:ok
Tags:
Comment:
fixed bug #27735, select field on click/focus
Modified paths:
  • /trunk/extensions/UploadWizard/resources/mw.UploadWizard.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js
@@ -916,7 +916,10 @@
917917 return $j( '<input/>' ).addClass( 'mwe-title ui-corner-all' )
918918 .readonly()
919919 .val( s )
920 - .focus( function() { this.select(); } );
 920+ .click( function() {
 921+ this.focus();
 922+ this.select();
 923+ } );
921924 },
922925
923926 /**

Status & tagging log