summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-07-03 14:25:19 +0200
committerAleksander Machniak <alec@alec.pl>2014-07-03 14:25:19 +0200
commit36d004e3d0ad9ff97b66b2e505f6b17fd6d23102 (patch)
treebcea0ab4f689fcd3d176bb0ef70a442e26a12c5a /program/js/app.js
parent5a897b3f69d0fdadd39a0df49f93c01a1bfd8385 (diff)
Added 'contact_search_name' option to define autocompletion entry format
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/app.js b/program/js/app.js
index a3060a8c3..34871f798 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -4568,7 +4568,7 @@ function rcube_webmail()
// add each result line to list
if (results && (len = results.length)) {
for (i=0; i < len && maxlen > 0; i++) {
- text = typeof results[i] === 'object' ? results[i].name : results[i];
+ text = typeof results[i] === 'object' ? (results[i].display || results[i].name) : results[i];
type = typeof results[i] === 'object' ? results[i].type : '';
id = i + this.env.contacts.length;
$('<li>').attr('id', 'rcmkSearchItem' + id)