|
|
@ -87,7 +87,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
// Check if the query is in the model list
|
|
|
|
// Check if the query is in the model list
|
|
|
|
// If it is then hide the new contact view
|
|
|
|
// If it is then hide the new contact view
|
|
|
|
var modelExists = this.typeahead_view.collection.find(item => item.get('id') == query);
|
|
|
|
const modelExists = this.typeahead_view.collection.find(item => item.get('id') == query);
|
|
|
|
if (modelExists) this.new_contact_view.$el.hide();
|
|
|
|
if (modelExists) this.new_contact_view.$el.hide();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
);
|
|
|
|
);
|
|
|
|