mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-04 20:40:14 +01:00
Fix adding distribution list (& maybe some other link issues) by looking for framework's link handler in open_link()
This commit is contained in:
parent
066ffc2c25
commit
44e96714af
@ -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'));
|
var name = window.prompt(egw.lang('Name for the distribution list'));
|
||||||
if (name)
|
if (name)
|
||||||
{
|
{
|
||||||
egw.open_link(egw.link('/index.php',{
|
egw.open('','addressbook', 'list', {
|
||||||
'menuaction': 'addressbook.addressbook_ui.index',
|
|
||||||
'add_list': name,
|
'add_list': name,
|
||||||
'owner': owner
|
'owner': egw.user('account_id')
|
||||||
}), '_self');
|
},'_self');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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();
|
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);
|
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
|
// Use framework's link handler, if present
|
||||||
return _wnd.egw_link_handler(url,_target);
|
return _wnd.egw_link_handler(url,_target);
|
||||||
|
Loading…
Reference in New Issue
Block a user