mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
Call egw message on top window if not in popup and window is not equal to top window
This commit is contained in:
parent
af05aa9471
commit
0eb5418103
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user