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:23:31 +00:00
parent 5cd3972ae3
commit c751cda84b

View File

@ -2579,7 +2579,7 @@ app.classes.mail = AppJS.extend(
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;
}