From: <nat...@us...> - 2013-06-12 16:56:19
|
Author: nathangray Date: Wed Jun 12 18:56:12 2013 New Revision: 42755 URL: http://svn.stylite.de/viewvc/egroupware?rev=42755&view=rev Log: If egw_link_handler() is defined, use that instead of window.open() Modified: trunk/phpgwapi/js/jsapi/egw_open.js Modified: trunk/phpgwapi/js/jsapi/egw_open.js URL: http://svn.stylite.de/viewvc/egroupware/trunk/phpgwapi/js/jsapi/egw_open.js?rev=42755&r1=42754&r2=42755&view=diff ============================================================================== --- trunk/phpgwapi/js/jsapi/egw_open.js (original) +++ trunk/phpgwapi/js/jsapi/egw_open.js Wed Jun 12 18:56:12 2013 @@ -157,6 +157,11 @@ if (w_h[1] == 'egw_getWindowOuterHeight()') w_h[1] = egw_getWindowOuterHeight(); return _wnd.egw_openWindowCentered2(url, _target, w_h[0], w_h[1],false,false,true); } + else if (typeof _wnd.egw_link_handler == 'function' && typeof target == 'undefined') + { + // Use framework's link handler, if present + return _wnd.egw_link_handler(url,_target); + } else { return _wnd.open(url, _target); |