fixing bug 114952 - Labels: not available in standalone msg window, Message & context menu items disabled. r=varada, sr=bienvenu

This commit is contained in:
ssu%netscape.com 2002-06-11 23:10:04 +00:00
Родитель dd1ac3d47c
Коммит f12b75e414
1 изменённых файлов: 45 добавлений и 0 удалений

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

@ -336,6 +336,20 @@ function GetSelectedMessages()
return messageArray;
}
function GetSelectedIndices(dbView)
{
try {
var indicesArray = {};
var length = {};
dbView.getIndicesForSelection(indicesArray,length);
return indicesArray.value;
}
catch (ex) {
dump("ex = " + ex + "\n");
return null;
}
}
function GetLoadedMsgFolder()
{
if(gCurrentFolderUri)
@ -460,6 +474,12 @@ var MessageWindowController =
case "cmd_markAllRead":
case "cmd_markThreadAsRead":
case "cmd_markAsFlagged":
case "cmd_label0":
case "cmd_label1":
case "cmd_label2":
case "cmd_label3":
case "cmd_label4":
case "cmd_label5":
case "button_file":
case "cmd_file":
case "cmd_settingsOffline":
@ -519,6 +539,13 @@ var MessageWindowController =
case "cmd_markAsRead":
case "cmd_markAllRead":
case "cmd_markThreadAsRead":
case "cmd_label0":
case "cmd_label1":
case "cmd_label2":
case "cmd_label3":
case "cmd_label4":
case "cmd_label5":
return(true);
case "cmd_markAsFlagged":
case "button_file":
case "cmd_file":
@ -666,6 +693,24 @@ var MessageWindowController =
case "cmd_markAsFlagged":
MsgMarkAsFlagged(null);
return;
case "cmd_label0":
gDBView.doCommand(nsMsgViewCommandType.label0);
return;
case "cmd_label1":
gDBView.doCommand(nsMsgViewCommandType.label1);
return;
case "cmd_label2":
gDBView.doCommand(nsMsgViewCommandType.label2);
return;
case "cmd_label3":
gDBView.doCommand(nsMsgViewCommandType.label3);
return;
case "cmd_label4":
gDBView.doCommand(nsMsgViewCommandType.label4);
return;
case "cmd_label5":
gDBView.doCommand(nsMsgViewCommandType.label5);
return;
case "cmd_downloadFlagged":
MsgDownloadFlagged();
return;