зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
1a9b2f6862
Коммит
1afa516aef
|
@ -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));
|
||||
|
|
Загрузка…
Ссылка в новой задаче