fixed imap server pref not initailized correctly; check in for alecf

This commit is contained in:
jefft%netscape.com 2000-05-08 21:39:44 +00:00
parent 56207eb311
commit 651bc98ce1
2 changed files with 7 additions and 10 deletions

View File

@ -42,13 +42,10 @@ function onLoad()
var slot = controls[i].id;
var val = server[slot];
if (val) {
if (controls[i].tagName.toLowerCase() == "checkbox") {
controls[i].checked = val;
}
else
controls[i].value = val;
}
if (controls[i].tagName.toLowerCase() == "checkbox")
controls[i].checked = val;
else
controls[i].value = val;
}
doSetOKCancel(onOk, 0);

View File

@ -134,8 +134,8 @@ function getImapServer() {
function saveServerLocally(imapServer)
{
// boolean prefs, JS does the conversion for us
document.getElementById("imap.dualUseFolders").value = imapServer.dualUseFolders;
document.getElementById("imap.usingSubscription").value = imapServer.usingSubscription;
document.getElementById("imap.dualUseFolders").value = imapServer.dualUseFolders.toString();
document.getElementById("imap.usingSubscription").value = imapServer.usingSubscription.toString();
// string prefs
document.getElementById("imap.personalNamespace").value = imapServer.personalNamespace;
@ -144,7 +144,7 @@ function saveServerLocally(imapServer)
document.getElementById("imap.otherUsersNamespace").value = imapServer.otherUsersNamespace;
// boolean prefs, JS does the conversion for us
document.getElementById("imap.overrideNamespaces").value = imapServer.overrideNamespaces;
document.getElementById("imap.overrideNamespaces").value = imapServer.overrideNamespaces.toString();
}