Bug 229450 JavaScript strict warning: redeclaration of var msgFolder p=mnyromyr@tprac.de r=me sr=bienvenu

This commit is contained in:
neil%parkwaycc.co.uk 2003-12-28 15:51:37 +00:00
Родитель b3ccee7f7d
Коммит 37e8fcc787
1 изменённых файлов: 1 добавлений и 4 удалений

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

@ -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');
}