Bug 976226 - Cursor at beginning of user name when adding existing mail account, whole text should be selected. r=JosiahOne
--- 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