From 43dcb3bdd9ababc0bdfa7ae2dc19e2e6911b4146 Mon Sep 17 00:00:00 2001 From: PhilW Date: Fri, 26 Jan 2018 07:41:46 +0000 Subject: [PATCH] simplify execution of group_assign_selected JS --- program/js/app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/program/js/app.js b/program/js/app.js index 1abee0b83..9b2b0f5f1 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -6590,7 +6590,9 @@ function rcube_webmail() //assign selected contacts to a group this.group_assign_selected = function(props, obj, event) { - this.contactgroup_selector(event, function(to) { ref.group_member_change('add', ref.contact_list.get_selection(), ref.env.source, to); }); + var cid = ref.contact_list.get_selection(); + var source = ref.env.source; + this.contactgroup_selector(event, function(to) { ref.group_member_change('add', cid, source, to); }); }; //remove selected contacts from current active group