Call egw message on top window if not in popup and window is not equal to top window

This commit is contained in:
Hadi Nategh 2014-12-10 11:05:29 +00:00
parent af05aa9471
commit 0eb5418103

View File

@ -71,6 +71,12 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd)
_type = _msg.match(error_reg_exp) ? 'error' : 'success'; _type = _msg.match(error_reg_exp) ? 'error' : 'success';
} }
// if we are NOT in a popup then call the message on top window
if (!this.is_popup() && _wnd !== _wnd.top)
{
egw(_wnd.top).message(_msg, _type);
return;
}
// handle message display for non-framework templates, eg. idots or jerryr // handle message display for non-framework templates, eg. idots or jerryr
if (message_timer) if (message_timer)
{ {