summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-08-08 08:54:30 +0000
committeralecpl <alec@alec.pl>2011-08-08 08:54:30 +0000
commit1871993b21741a408bf57868a02b03aed5e58fbc (patch)
tree82b27d78757edbb52c1960fe0236b409cc448841 /program/js
parent241450ee4539045b946c295bd60cd7d69b71e896 (diff)
- Fix inserting autocomplete entry (with MT enebled)
Diffstat (limited to 'program/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 e698e3164..9334dc8e2 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -3689,7 +3689,7 @@ function rcube_webmail()
li.innerHTML = text.replace(new RegExp('('+RegExp.escape(s_val)+')', 'ig'), '##$1%%').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/##([^%]+)%%/g, '<b>$1</b>');
li.onmouseover = function(){ ref.ksearch_select(this); };
li.onmouseup = function(){ ref.ksearch_click(this) };
- li._rcm_id = i;
+ li._rcm_id = this.env.contacts.length + i;
ul.appendChild(li);
maxlen -= 1;
}