mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Addressbook - add new distribution lists immediately to the context menu
This commit is contained in:
parent
07773ded32
commit
6084d53bbf
@ -640,6 +640,19 @@ app.classes.addressbook = AppJS.extend(
|
||||
// Not sure why our selectbox does not trigger change event
|
||||
jQuery(lists.node).change();
|
||||
}
|
||||
// Add to actions
|
||||
var addressbook_actions = egw_getActionManager('addressbook',false);
|
||||
var dist_lists = null;
|
||||
if(addressbook_actions && (dist_lists = addressbook_actions.getActionById('to_list')))
|
||||
{
|
||||
var id = 'to_list_' + result;
|
||||
var action = dist_lists.addAction(
|
||||
'popup',
|
||||
id,
|
||||
name
|
||||
);
|
||||
action.updateAction({group: 1});
|
||||
}
|
||||
}
|
||||
).sendRequest(true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user