Bug 323723 Can't select SMTP server when creating a new identity r+sr=bienvenu

This commit is contained in:
neil%parkwaycc.co.uk 2006-01-19 09:17:38 +00:00
Родитель c85cb8cc3b
Коммит dcfd14e818
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -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");
} }