mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 08:48:07 +00:00
get rid of evil tabs so I can actually read this in something other than vi :)
This commit is contained in:
parent
48ca57f1e2
commit
402228ea38
@ -44,17 +44,13 @@ function onInit() {
|
||||
protocolinfo = Components.classes["component://netscape/messenger/protocol/info;type=" + type].getService(Components.interfaces.nsIMsgProtocolInfo);
|
||||
|
||||
if (loginNameInput.value == "") {
|
||||
if (protocolinfo.requiresUsername) {
|
||||
// since we require a username, use the uid from the email address
|
||||
var email = document.getElementById("identity.email").value;
|
||||
var emailParts = email.split("@");
|
||||
loginNameInput.value = emailParts[0];
|
||||
}
|
||||
else {
|
||||
// leave it blank.
|
||||
}
|
||||
if (protocolinfo.requiresUsername) {
|
||||
// since we require a username, use the uid from the email address
|
||||
var email = document.getElementById("identity.email").value;
|
||||
var emailParts = email.split("@");
|
||||
loginNameInput.value = emailParts[0];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user