Change-Id: Ibbe1c5ba3ff2ab3d4c2417eda247ef2a5c903e05
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
this.contactsComputed = ko.computed(function() {
if (self.contactsAlphabetFilter() !== "") {
return ko.utils.arrayFilter(self.contacts(), function(contact) {
this.contactsComputed = ko.computed(function() {
if (self.contactsAlphabetFilter() !== "") {
return ko.utils.arrayFilter(self.contacts(), function(contact) {
- if ( !! contact.name && !! contact.name.leftLastName) {
- return contact.name.lastName.toString().toLowerCase().trim().indexOf(
+ if (!!contact.name) {
+ var name = null;
+ if (!!contact.name.displayName){
+ name = contact.name.displayName;
+ } else if (!!contact.name.lastName) {
+ name = contact.name.lastName;
+ } else if (!!contact.name.firstName) {
+ name = contact.name.firstName;
+ }
+
+ if (!name)
+ return false;
+
+ return name.toString().toLowerCase().trim().indexOf(
self.contactsAlphabetFilter().toString().toLowerCase().trim()) === 0;
}
return false;
self.contactsAlphabetFilter().toString().toLowerCase().trim()) === 0;
}
return false;
+* Mon Oct 20 2014 Jimmy Huang <jimmy.huang@intel.com> accepted/tizen/3.0.m14.3/ivi/20141018.100013-1-gce6f884
+- Fixed a bug where alpha filter is not working in contacts
+
* Tue Oct 07 2014 Brian Jones <brian.j.jones@intel.com> submit/tizen_ivi/20141007.174646-1-g4679ed8
- clean the spec file
- Fix for TC-1560 UI always zoomed out
* Tue Oct 07 2014 Brian Jones <brian.j.jones@intel.com> submit/tizen_ivi/20141007.174646-1-g4679ed8
- clean the spec file
- Fix for TC-1560 UI always zoomed out