updates coming through
[webos-internals:modifications.git] / universal-search / universal-search-sms-icon-for-mobile-tagged-numbers-and-email.patch
1 diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
2 index b9db2c2..22b5244 100644
3 --- a/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
4 +++ b/usr/lib/luna/system/luna-applauncher/app/controllers/global-search-assistant.js
5 @@ -613,13 +613,16 @@ GlobalSearchAssistant = Class.create({
6                                 a.contactId = contact.id;
7                                 a.label = that.mailLabel[a.label];
8                                 mailList.push(a);
9 +                               a.icon = "im-image";
10                         });
11                 }
12                 if (data.record.phoneNumbers && data.record.phoneNumbers.length > 0) {
13                         $A(data.record.phoneNumbers).each(function(a){
14                                 a.contactId = contact.id;
15                                 a.value = Mojo.Format.formatPhoneNumber(a.value);
16 -                               a.icon = "im-image";
17 +                               //a.icon = "im-image";
18 +                               if (a.label == 3)
19 +                                       a.icon = "im-image";
20                                 if (a.label == 2 && a.customLabel) 
21                                         a.label = a.customLabel;
22                                 else