Bug #130070 --> Don't show "Mark Folder Read" context menu item for an account. Patch by Aidas Kasparas

r=neil
sr=mscott
a=asa
This commit is contained in:
scott%scott-macgregor.org 2003-11-25 19:10:59 +00:00
Родитель 1a9b2f6862
Коммит 1afa516aef
1 изменённых файлов: 3 добавлений и 2 удалений

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

@ -271,7 +271,8 @@ function fillFolderPaneContextMenu()
var serverType = GetFolderAttribute(folderTree, folderResource, "ServerType");
var specialFolder = GetFolderAttribute(folderTree, folderResource, "SpecialFolder");
var canSubscribeToFolder = (serverType == "nntp") || (serverType == "imap");
var isNewsgroup = !isServer && serverType == 'nntp';
var isNewsgroup = !isServer && serverType == 'nntp';
var isMailFolder = !isServer && serverType != 'nntp';
var canGetMessages = (isServer && (serverType != "nntp") && (serverType !="none")) || isNewsgroup;
EnableMenuItem("folderPaneContext-properties", true);
@ -312,7 +313,7 @@ function fillFolderPaneContextMenu()
// End of News folder context menu =======================================
ShowMenuItem("folderPaneContext-markMailFolderAllRead", (numSelected <= 1) && ! isNewsgroup);
ShowMenuItem("folderPaneContext-markMailFolderAllRead", (numSelected <= 1) && isMailFolder);
EnableMenuItem("folderPaneContext-markMailFolderAllRead", true);
ShowMenuItem("folderPaneContext-searchMessages", (numSelected<=1));