From d0afb453a08cd45ef41a9bbb3f545f8134149f7a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 11 Feb 2015 09:43:29 +0000 Subject: [PATCH] * ImportExport: links supposed to open in admin did not show admin sidebox with tree --- phpgwapi/js/jsapi/egw_open.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpgwapi/js/jsapi/egw_open.js b/phpgwapi/js/jsapi/egw_open.js index 680aae8591..8df4560654 100644 --- a/phpgwapi/js/jsapi/egw_open.js +++ b/phpgwapi/js/jsapi/egw_open.js @@ -365,6 +365,12 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) */ link_handler: function(_url, _target) { + // if url is supposed to open in admin, use admins loader to open it in it's own iframe + // (otherwise there's no tree and sidebox!) + if (_target === 'admin' && !_url.match(/menuaction=admin\.admin_ui\.index/)) + { + _url = _url.replace(/menuaction=([^&]+)/, 'menuaction=admin.admin_ui.index&load=$1'); + } if (_wnd.framework) { _wnd.framework.linkHandler(_url, _target);