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

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_0_BRANCH@188074 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
neil%parkwaycc.co.uk
2006-01-24 00:48:23 +00:00
parent e9789743ad
commit 2a316060a7

View File

@@ -55,16 +55,16 @@ function enabling()
// If the default per-identity directory preferences are locked
// 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("directories").setAttribute("disabled", "true");
}
else
{
document.getElementById("useGlobalPref").removeAttribute("disabled");
document.getElementById("useGlobalPref").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("directoriesListPopup").setAttribute("disabled", "true");
}