From 1871993b21741a408bf57868a02b03aed5e58fbc Mon Sep 17 00:00:00 2001 From: alecpl <alec@alec.pl> Date: Mon, 08 Aug 2011 04:54:30 -0400 Subject: [PATCH] - Fix inserting autocomplete entry (with MT enebled) --- program/js/app.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index e698e31..9334dc8 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3689,7 +3689,7 @@ li.innerHTML = text.replace(new RegExp('('+RegExp.escape(s_val)+')', 'ig'), '##$1%%').replace(/</g, '<').replace(/>/g, '>').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; } -- Gitblit v1.9.1