Bug 976226 - Cursor at beginning of user name when adding existing mail account, whole text should be selected. r=JosiahOne
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 24 Feb 2014 21:04:38 +0100
changeset 17610 4751fb82d57c5c34dda87f67ddf6664534d93b84
parent 17609 c370a7d5679b0b34bf2fae72f5381b95ff8e2eeb
child 17611 bcb19733ea2e194000bc53455e6cf68e3fb418ff
push id1175
push usermbanner@mozilla.com
push dateTue, 18 Mar 2014 08:37:15 +0000
treeherdercomm-aurora@3b5242ee031a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersJosiahOne
bugs976226
Bug 976226 - Cursor at beginning of user name when adding existing mail account, whole text should be selected. r=JosiahOne
mailnews/base/prefs/content/accountcreation/emailWizard.js
--- a/mailnews/base/prefs/content/accountcreation/emailWizard.js
+++ b/mailnews/base/prefs/content/accountcreation/emailWizard.js
@@ -232,17 +232,17 @@ EmailConfigWizard.prototype =
     _show("result_area");
     _hide("manual-edit_area");
     window.sizeToContent();
     e("mastervbox").setAttribute("style",
         "min-width: " + document.width + "px; " +
         "min-height: " + (document.height + 10) + "px;");
 
     this.switchToMode("start");
-    e("realname").focus();
+    e("realname").select();
   },
 
   /**
    * Changes the window configuration to the different modes we have.
    * Shows/hides various window parts and buttons.
    * @param modename {String-enum}
    *    "start" : Just the realname, email address, password fields
    *    "find-config" : detection step, adds the progress message/spinner