fix handling of limiting offline download checkbox rs=sspitzer prefs ui was setting the wrong pref 96335

This commit is contained in:
bienvenu%netscape.com 2001-09-12 23:15:33 +00:00
Родитель b651201a62
Коммит 248cd0f7e1
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -43,7 +43,7 @@ function onInit()
function initServerSettings() function initServerSettings()
{ {
document.getElementById("offline.notDownload").checked = gIncomingServer.limitMessageSize; document.getElementById("offline.notDownload").checked = gIncomingServer.limitOfflineMessageSize;
if(gIncomingServer.maxMessageSize > 0) if(gIncomingServer.maxMessageSize > 0)
document.getElementById("offline.notDownloadMin").setAttribute("value", gIncomingServer.maxMessageSize); document.getElementById("offline.notDownloadMin").setAttribute("value", gIncomingServer.maxMessageSize);
else else
@ -206,7 +206,7 @@ function onSave()
var retentionSettings = new Array; var retentionSettings = new Array;
var downloadSettings = new Array; var downloadSettings = new Array;
gIncomingServer.limitMessageSize = document.getElementById("offline.notDownload").checked; gIncomingServer.limitOfflineMessageSize = document.getElementById("offline.notDownload").checked;
gIncomingServer.maxMessageSize = document.getElementById("offline.notDownloadMin").value; gIncomingServer.maxMessageSize = document.getElementById("offline.notDownloadMin").value;
if(document.getElementById("nntp.keepAllMsg").checked) if(document.getElementById("nntp.keepAllMsg").checked)
@ -276,7 +276,7 @@ function onLockPreference()
{ prefstring:"offline_download", id:"offline.newFolder"}, { prefstring:"offline_download", id:"offline.newFolder"},
{ prefstring:"download_bodies_on_get_new_mail", { prefstring:"download_bodies_on_get_new_mail",
id:"offline.downloadBodiesOnGetNewMail"}, id:"offline.downloadBodiesOnGetNewMail"},
{ prefstring:"limit_message_size", id:"offline.notDownload"}, { prefstring:"limit_offline_message_size", id:"offline.notDownload"},
{ prefstring:"max_size", id:"offline.notDownloadMin"}, { prefstring:"max_size", id:"offline.notDownloadMin"},
{ prefstring:"downloadUnreadOnly", id:"nntp.downloadUnread"}, { prefstring:"downloadUnreadOnly", id:"nntp.downloadUnread"},
{ prefstring:"downloadByDate", id:"nntp.downloadMsg"}, { prefstring:"downloadByDate", id:"nntp.downloadMsg"},