Fix add selection of contacts to new distribution list did not bring up dialog

This commit is contained in:
nathangray 2017-05-02 08:24:37 -06:00
parent 9f98d0fe56
commit 8113908273

View File

@ -582,14 +582,14 @@ app.classes.addressbook = AppJS.extend(
var contacts = []; var contacts = [];
if(selected && selected[0] && selected[0].getAllSelected()) if(selected && selected[0] && selected[0].getAllSelected())
{ {
// All contacts selected, better ask the server for _all_ the IDs // Action says all contacts selected, better ask the server for _all_ the IDs
fetchAll(selected, this.et2.getWidgetById('nm'), jQuery.proxy( var fetching = fetchAll(selected, this.et2.getWidgetById('nm'), jQuery.proxy(
function(contacts) { function(contacts) {
this._add_new_list_prompt(owner, contacts); this._add_new_list_prompt(owner, contacts);
}, this)); }, this));
return; if (fetching) return;
} }
else if(selected && selected.length) if(selected && selected.length)
{ {
for(var i = 0; i < selected.length; i++) for(var i = 0; i < selected.length; i++)
{ {