From 7a0df1531d0fd3d7bc0365f32ebe89e51f1649d8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 2 Sep 2013 13:24:21 +0000 Subject: [PATCH] fixed distribution lists allways created in personal addressbook, not selected one --- addressbook/inc/class.addressbook_ui.inc.php | 12 ------------ addressbook/js/app.js | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 8d537995cd..f7d97f6e0f 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -2377,18 +2377,6 @@ window.egw_LAB.wait(function() { 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) { if (selbox.value != "") { diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 573821e529..eb1ed3ddfa 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -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')); if (name) { egw.open('','addressbook', 'list', { 'add_list': name, - 'owner': egw.user('account_id') + 'owner': owner },'_self'); } }