JavaScript strict warnings: redeclaration of var account and function onOk does not always return a value b=275107 p=gautheri@noos.fr r=me sr=dmose

This commit is contained in:
neil%parkwaycc.co.uk 2005-02-01 14:57:49 +00:00
Родитель 5080e721da
Коммит e062449619
2 изменённых файлов: 5 добавлений и 7 удалений

Просмотреть файл

@ -184,6 +184,8 @@ function onOk()
gServerSettings[slot] = controls[i].value;
}
}
return true;
}

Просмотреть файл

@ -183,7 +183,7 @@ function onAdvanced()
var account = parent.getAccountFromServerId(gServer.serverURI);
var identity = account.defaultIdentity;
var accountManager = Components.classes["@mozilla.org/messenger/account-manager;1"].getService(Components.interfaces.nsIMsgAccountManager);
var account = accountManager.getAccount(serverSettings.deferredToAccount);
account = accountManager.getAccount(serverSettings.deferredToAccount);
if (identity.fccFolder == (pop3Server.serverURI + "/Sent"))
identity.fccFolder = account.incomingServer.serverURI + "/Sent";
@ -224,12 +224,10 @@ function setupBiffUI()
var checked = dobiff.checked;
var locked = getAccountValueIsLocked(dobiff);
if (checked)
if (checked && !locked)
broadcaster.removeAttribute("disabled");
else
broadcaster.setAttribute("disabled", "true");
if (locked)
broadcaster.setAttribute("disabled","true");
}
function setupMailOnServerUI()
@ -295,12 +293,10 @@ function setupNotifyUI()
var checked = notify.checked;
var locked = getAccountValueIsLocked(notify);
if (checked)
if (checked && !locked)
broadcaster.removeAttribute("disabled");
else
broadcaster.setAttribute("disabled", "true");
if (locked)
broadcaster.setAttribute("disabled","true");
}
function BrowseForNewsrc()