avoid JavaScript Error on openComposeWindow, when there is no mailGrid

This commit is contained in:
Klaus Leithoff 2011-08-04 09:17:32 +00:00
parent 042c4b872d
commit 68f9611528

View File

@ -820,7 +820,9 @@ function mail_openComposeWindow(_url,forwardByCompose) {
var _messageList;
var sMessageList='';
var cbAllMessages = document.getElementById('selectAllMessagesCheckBox').checked;
var cbAllVisibleMessages = mailGrid.dataRoot.actionObject.getAllSelected();
// check if mailgrid exists, before accessing it
var cbAllVisibleMessages;
if (mailGrid) cbAllVisibleMessages = mailGrid.dataRoot.actionObject.getAllSelected();
if (typeof forwardByCompose == 'undefined') forwardByCompose = true;
if (forwardByCompose == false)
{