From 8113908273e33121a81244c2d1c4dca689a828df Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 2 May 2017 08:24:37 -0600 Subject: [PATCH] Fix add selection of contacts to new distribution list did not bring up dialog --- addressbook/js/app.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addressbook/js/app.js b/addressbook/js/app.js index 42ceef8807..18ed84e423 100644 --- a/addressbook/js/app.js +++ b/addressbook/js/app.js @@ -582,14 +582,14 @@ app.classes.addressbook = AppJS.extend( var contacts = []; if(selected && selected[0] && selected[0].getAllSelected()) { - // All contacts selected, better ask the server for _all_ the IDs - fetchAll(selected, this.et2.getWidgetById('nm'), jQuery.proxy( + // Action says all contacts selected, better ask the server for _all_ the IDs + var fetching = fetchAll(selected, this.et2.getWidgetById('nm'), jQuery.proxy( function(contacts) { this._add_new_list_prompt(owner, contacts); }, this)); - return; + if (fetching) return; } - else if(selected && selected.length) + if(selected && selected.length) { for(var i = 0; i < selected.length; i++) {