зеркало из https://github.com/mozilla/pjs.git
use a constant for offline folder flag r=naving, sr=mscott 67608
This commit is contained in:
Родитель
31c646b4d1
Коммит
f5cacd5b27
|
@ -4,15 +4,17 @@ var preselectedFolderURI = null;
|
||||||
// services used
|
// services used
|
||||||
var RDF;
|
var RDF;
|
||||||
|
|
||||||
|
// corresponds to MSG_FOLDER_FLAG_OFFLINE
|
||||||
|
const FOLDER_FLAG_OFFLINE = 0x8000000
|
||||||
|
|
||||||
function folderPropsOKButtonCallback()
|
function folderPropsOKButtonCallback()
|
||||||
{
|
{
|
||||||
if (gMsgFolder)
|
if (gMsgFolder)
|
||||||
{
|
{
|
||||||
if (document.getElementById("selectForDownload").checked)
|
if (document.getElementById("selectForDownload").checked)
|
||||||
gMsgFolder.setFlag(0x8000000);
|
gMsgFolder.setFlag(FOLDER_FLAG_OFFLINE);
|
||||||
else
|
else
|
||||||
gMsgFolder.clearFlag(0x8000000);
|
gMsgFolder.clearFlag(FOLDER_FLAG_OFFLINE);
|
||||||
|
|
||||||
// set charset attributes
|
// set charset attributes
|
||||||
var folderCharsetList = document.getElementById("folderCharsetList");
|
var folderCharsetList = document.getElementById("folderCharsetList");
|
||||||
|
@ -71,7 +73,7 @@ function folderPropsOnLoad()
|
||||||
dump("no gMsgFolder preselectfolder uri = "+preselectedFolderURI+'\n');
|
dump("no gMsgFolder preselectfolder uri = "+preselectedFolderURI+'\n');
|
||||||
|
|
||||||
if (gMsgFolder) {
|
if (gMsgFolder) {
|
||||||
if (gMsgFolder.flags & 0x8000000) {
|
if (gMsgFolder.flags & FOLDER_FLAG_OFFLINE) {
|
||||||
document.getElementById("selectForDownload").checked = true;
|
document.getElementById("selectForDownload").checked = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче