зеркало из https://github.com/mozilla/gecko-dev.git
Bug 323723 Can't select SMTP server when creating a new identity r+sr=bienvenu
This commit is contained in:
Родитель
c85cb8cc3b
Коммит
dcfd14e818
|
@ -55,16 +55,16 @@ function enabling()
|
||||||
|
|
||||||
// If the default per-identity directory preferences are locked
|
// If the default per-identity directory preferences are locked
|
||||||
// disable the corresponding elements.
|
// disable the corresponding elements.
|
||||||
if (gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".overrideGlobal_Pref")) {
|
if (gIdentity && gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".overrideGlobal_Pref")) {
|
||||||
document.getElementById("useGlobalPref").setAttribute("disabled", "true");
|
document.getElementById("useGlobalPref").setAttribute("disabled", "true");
|
||||||
document.getElementById("directories").setAttribute("disabled", "true");
|
document.getElementById("directories").setAttribute("disabled", "true");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
document.getElementById("useGlobalPref").removeAttribute("disabled");
|
document.getElementById("useGlobalPref").removeAttribute("disabled");
|
||||||
document.getElementById("directories").removeAttribute("disabled");
|
document.getElementById("directories").removeAttribute("disabled");
|
||||||
}
|
}
|
||||||
if (gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".directoryServer")) {
|
if (gIdentity && gPrefInt.prefIsLocked("mail.identity." + gIdentity.key + ".directoryServer")) {
|
||||||
document.getElementById("directoriesList").setAttribute("disabled", "true");
|
document.getElementById("directoriesList").setAttribute("disabled", "true");
|
||||||
document.getElementById("directoriesListPopup").setAttribute("disabled", "true");
|
document.getElementById("directoriesListPopup").setAttribute("disabled", "true");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче