mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
avoid JavaScript Error on openComposeWindow, when there is no mailGrid
This commit is contained in:
parent
042c4b872d
commit
68f9611528
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user