mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:19 +01:00
Get adding a distribution list working in et2
This commit is contained in:
parent
f4fe5cf8b6
commit
b42acd3b0b
@ -221,11 +221,12 @@ class addressbook_ui extends addressbook_bo
|
|||||||
'lettersearch' => true,
|
'lettersearch' => true,
|
||||||
'do_email' => $do_email ? 1 : 0,
|
'do_email' => $do_email ? 1 : 0,
|
||||||
'default_cols' => '!cat_id,contact_created_contact_modified,distribution_list,contact_id,owner,legacy_actions',
|
'default_cols' => '!cat_id,contact_created_contact_modified,distribution_list,contact_id,owner,legacy_actions',
|
||||||
'filter2_onchange' => "if(this.value=='add') { add_new_list(document.getElementById(form::name('filter')).value); this.value='';} else this.form.submit();",
|
'filter2_onchange' => "if(this.value=='add') { add_new_list(typeof widget == 'undefined' ? document.getElementById(\"exec[nm][filter]\").value : widget.header.filter.get_value()); this.value='';} else this.form.submit();",
|
||||||
'manual' => $do_email ? ' ' : false, // space for the manual icon
|
'manual' => $do_email ? ' ' : false, // space for the manual icon
|
||||||
//'actions' => $this->get_actions(), // set on each request, as it depends on some filters
|
//'actions' => $this->get_actions(), // set on each request, as it depends on some filters
|
||||||
'row_id' => 'id',
|
'row_id' => 'id',
|
||||||
'favorites' => true
|
'favorites' => true,
|
||||||
|
'placeholder_actions' => array('add','delete_list')
|
||||||
);
|
);
|
||||||
$csv_export = new addressbook_csv($this);
|
$csv_export = new addressbook_csv($this);
|
||||||
$content['nm']['csv_fields'] = $GLOBALS['egw_info']['user']['preferences']['addressbook']['nextmatch-export-definition'] ?
|
$content['nm']['csv_fields'] = $GLOBALS['egw_info']['user']['preferences']['addressbook']['nextmatch-export-definition'] ?
|
||||||
@ -2363,9 +2364,8 @@ class addressbook_ui extends addressbook_bo
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_new_list()
|
function add_new_list(owner)
|
||||||
{
|
{
|
||||||
var owner=document.getElementById("exec[nm][filter]").value;
|
|
||||||
var name = window.prompt("'.lang('Name for the distribution list').'");
|
var name = window.prompt("'.lang('Name for the distribution list').'");
|
||||||
if (name)
|
if (name)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user