From 74931d30a900b37089e571e300ffeba6b4c2ef04 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Tue, 4 Dec 2012 00:13:12 +0000 Subject: [PATCH] Return the result of opening so caller can use it --- phpgwapi/js/jsapi/egw_open.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phpgwapi/js/jsapi/egw_open.js b/phpgwapi/js/jsapi/egw_open.js index a24c0b2b1a..7d8b1499d6 100644 --- a/phpgwapi/js/jsapi/egw_open.js +++ b/phpgwapi/js/jsapi/egw_open.js @@ -122,7 +122,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) { } popup = app_registry[type+'_popup']; } - this.open_link(this.link(url, params), target, popup); + return this.open_link(this.link(url, params), target, popup); }, /** @@ -155,11 +155,11 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) { { var w_h = _popup.split('x'); if (w_h[1] == 'egw_getWindowOuterHeight()') w_h[1] = egw_getWindowOuterHeight(); - _wnd.egw_openWindowCentered2(url, _target, w_h[0], w_h[1]); + return _wnd.egw_openWindowCentered2(url, _target, w_h[0], w_h[1],false,false,true); } else { - _wnd.open(url, _target); + return _wnd.open(url, _target); } } };