Addressbook - add new distribution lists immediately to the context menu

This commit is contained in:
nathangray 2019-05-14 11:50:01 -06:00
parent becef5900c
commit 6a89598a82

View File

@ -633,6 +633,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);
}