fixed distribution lists allways created in personal addressbook, not selected one

This commit is contained in:
Ralf Becker 2013-09-02 13:24:21 +00:00
parent 3bc322690e
commit 7a0df1531d
2 changed files with 2 additions and 14 deletions

View File

@ -2377,18 +2377,6 @@ window.egw_LAB.wait(function() {
return false; return false;
} }
function add_new_list(owner)
{
var name = window.prompt("'.lang('Name for the distribution list').'");
if (name)
{
document.location.href = "'.egw::link('/index.php',array(
'menuaction'=>$_GET['menuaction'],//'addressbook.addressbook_ui.index',
'add_list'=>'',
)).'"+encodeURIComponent(name)+"&owner="+owner;
}
}
function do_action(selbox) function do_action(selbox)
{ {
if (selbox.value != "") { if (selbox.value != "") {

View File

@ -193,14 +193,14 @@ function show_custom_country(selectbox)
} }
} }
function add_new_list() function add_new_list(owner)
{ {
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('','addressbook', 'list', { egw.open('','addressbook', 'list', {
'add_list': name, 'add_list': name,
'owner': egw.user('account_id') 'owner': owner
},'_self'); },'_self');
} }
} }