From 6084d53bbf8f619860b642c3a7457496a19e236e Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 14 May 2019 11:50:01 -0600 Subject: [PATCH] Addressbook - add new distribution lists immediately to the context menu --- addressbook/js/app.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 3d4812d64b..0d8ad8113b 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -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); }