diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 701a1a1a92..6f2c625645 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -172,19 +172,14 @@ function show_custom_country(selectbox) } } -function add_new_list(owner) +function add_new_list() { - if(typeof owner == 'undefined') - { - owner = egw.user('account_id'); - } var name = window.prompt(egw.lang('Name for the distribution list')); if (name) { - egw.open_link(egw.link('/index.php',{ - 'menuaction': 'addressbook.addressbook_ui.index', + egw.open('','addressbook', 'list', { 'add_list': name, - 'owner': owner - }), '_self'); + 'owner': egw.user('account_id') + },'_self'); } } diff --git a/phpgwapi/js/jsapi/egw_open.js b/phpgwapi/js/jsapi/egw_open.js index 20b17a257d..4499613d03 100644 --- a/phpgwapi/js/jsapi/egw_open.js +++ b/phpgwapi/js/jsapi/egw_open.js @@ -157,7 +157,7 @@ egw.extend('open', egw.MODULE_WND_LOCAL, function(_egw, _wnd) { 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') + else if (typeof _wnd.egw_link_handler == 'function' && (typeof target == 'undefined' || target =='_self')) { // Use framework's link handler, if present return _wnd.egw_link_handler(url,_target);