From 8a7ffaa182019e91fa15e98d69947a5343904990 Mon Sep 17 00:00:00 2001
From: Nathan Gray <nathangray.bsc@gmail.com>
Date: Sat, 5 Oct 2013 09:38:22 +0000
Subject: [PATCH] Restore accidentally removed return of popup window

---
 phpgwapi/js/jsapi/egw_open.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/phpgwapi/js/jsapi/egw_open.js b/phpgwapi/js/jsapi/egw_open.js
index 3c0875b6a0..fb4086db06 100644
--- a/phpgwapi/js/jsapi/egw_open.js
+++ b/phpgwapi/js/jsapi/egw_open.js
@@ -201,10 +201,12 @@ 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();
-				var popup_window =  _wnd.egw_openWindowCentered2(url, _target, w_h[0], w_h[1], false, _target_app, true);
+				var popup_window = _wnd.egw_openWindowCentered2(url, _target, w_h[0], w_h[1], false, _target_app, true);
 				
 				// Remember which windows are open
 				_storeWindow.call(this, _target_app, popup_window);
+				
+				return popup_window;
 			}
 			else if (typeof _wnd.egw_link_handler == 'function' && (typeof _target == 'undefined' || _target =='_self' || typeof this.link_app_list()[_target] != "undefined"))
 			{