Make sure the popup has value and not false, the mail integration hooks may not be registered yet

This commit is contained in:
Hadi Nategh 2015-05-12 13:21:08 +00:00
parent ebd36ab82e
commit 8f20e57599

View File

@ -2630,7 +2630,7 @@ app.classes.mail = AppJS.extend(
if (typeof _action.data != 'undefined' ) if (typeof _action.data != 'undefined' )
{ {
if (typeof _action.data.popup != 'undefined') w_h = _action.data.popup.split('x'); if (typeof _action.data.popup != 'undefined' && _action.data.popup) w_h = _action.data.popup.split('x');
if (typeof _action.data.mail_import != 'undefined') var mail_import_hook = _action.data.mail_import; if (typeof _action.data.mail_import != 'undefined') var mail_import_hook = _action.data.mail_import;
} }