From 0eb541810350496874c063d372c2f48ba49ae181 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 10 Dec 2014 11:05:29 +0000 Subject: [PATCH] Call egw message on top window if not in popup and window is not equal to top window --- phpgwapi/js/jsapi/egw_message.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpgwapi/js/jsapi/egw_message.js b/phpgwapi/js/jsapi/egw_message.js index a97281e04f..dae105cb93 100644 --- a/phpgwapi/js/jsapi/egw_message.js +++ b/phpgwapi/js/jsapi/egw_message.js @@ -71,6 +71,12 @@ egw.extend('message', egw.MODULE_WND_LOCAL, function(_app, _wnd) _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 if (message_timer) {