зеркало из https://github.com/mozilla/gecko-dev.git
Bug 229450 JavaScript strict warning: redeclaration of var msgFolder p=mnyromyr@tprac.de r=me sr=bienvenu
This commit is contained in:
Родитель
b3ccee7f7d
Коммит
37e8fcc787
|
@ -376,9 +376,9 @@ function InitMessageMenu()
|
|||
// disable the move and copy menus if there are no messages selected.
|
||||
// disable the move menu if we can't delete msgs from the folder
|
||||
var moveMenu = document.getElementById("moveMenu");
|
||||
var msgFolder = GetLoadedMsgFolder();
|
||||
if(moveMenu)
|
||||
{
|
||||
var msgFolder = GetLoadedMsgFolder();
|
||||
var enableMenuItem = aMessage && msgFolder && msgFolder.canDeleteMessages;
|
||||
moveMenu.setAttribute("disabled", !enableMenuItem);
|
||||
}
|
||||
|
@ -399,10 +399,7 @@ function InitMessageMenu()
|
|||
// Disable mark menu when we're not in a folder
|
||||
var markMenu = document.getElementById("markMenu");
|
||||
if(markMenu)
|
||||
{
|
||||
var msgFolder = GetLoadedMsgFolder();
|
||||
markMenu.setAttribute("disabled", !msgFolder);
|
||||
}
|
||||
|
||||
document.commandDispatcher.updateCommands('create-menu-message');
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче