From f5b28b0274b8999f2a3f7b06377d48e5ee94de39 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Wed, 10 Feb 2016 09:32:44 -0500 Subject: [PATCH] (js) Fix autocompletion of mail editor in Contacts --- NEWS | 1 + UI/WebServerResources/js/Contacts/AddressBook.service.js | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index deb58e3a3..7445948e0 100644 --- a/NEWS +++ b/NEWS @@ -13,6 +13,7 @@ Bug fixes - [web] apply search filters when automatically reloading current mailbox (#3507) - [web] fixed virtual repeater when moving up in messages list - [web] really delete mailboxes being deleted from the Trash folder (#595, #1189, #641) + - [web] fixed address autocompletion of mail editor affecting cards list of active addressbook 3.0.1 (2016-02-05) ------------------ diff --git a/UI/WebServerResources/js/Contacts/AddressBook.service.js b/UI/WebServerResources/js/Contacts/AddressBook.service.js index 29af19efd..1081f8335 100644 --- a/UI/WebServerResources/js/Contacts/AddressBook.service.js +++ b/UI/WebServerResources/js/Contacts/AddressBook.service.js @@ -79,7 +79,7 @@ * @returns a collection of Cards instances */ AddressBook.$filterAll = function(search, options, excludedCards) { - var params = {search: search}; + var params = { search: search }; if (!search) { // No query specified @@ -90,11 +90,6 @@ // First session query AddressBook.$cards = []; } - else if (AddressBook.$query.value == search) { - // Query hasn't changed - return AddressBook.$q.when(AddressBook.$cards); - } - AddressBook.$query.value = search; angular.extend(params, options);