From 5cf5e47e4d8c78850c6a95b1aee7ff63a8a0a862 Mon Sep 17 00:00:00 2001 From: rick Date: Tue, 27 Apr 2010 22:12:20 +0000 Subject: [PATCH] one more place that still had the old code for tags git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@81 0cfe37f9-358a-4d5e-be75-b63607b5c754 --- forum/skins/default/templates/question_edit.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/forum/skins/default/templates/question_edit.html b/forum/skins/default/templates/question_edit.html index 2fec6c0..bcc1d48 100644 --- a/forum/skins/default/templates/question_edit.html +++ b/forum/skins/default/templates/question_edit.html @@ -26,8 +26,7 @@ }); //Tags autocomplete action - var tags = {{ tags|safe }}; - $("#id_tags").autocomplete(tags, { + $("#id_tags").autocomplete("/matching_tags", { matchContains: true, max: 20, multiple: true, @@ -35,11 +34,18 @@ highlightItem: true, scroll: true, scrollHeight: 300, - formatItem: function(row, i, max) { + /*formatItem: function(row, i, max) { return row.n + " ("+ row.c +")"; }, formatResult: function(row, i, max){ return row.n; + }*/ + formatItem: function(row, i, max, value) { + return row[1].split(".")[0] + " (" + row[1].split(".")[1] + ")"; + }, + + formatResult: function(row, i, max, value){ + return row[0]; } }); -- 2.45.2