зеркало из https://github.com/mozilla/pjs.git
fixed imap server pref not initailized correctly; check in for alecf
This commit is contained in:
Родитель
0cac953161
Коммит
54577fdeeb
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче