init: function(){\r
collectPickedTags();\r
setupHideIgnoredQuestionsControl();\r
- $("#interestingTagInput, #ignoredTagInput").autocomplete(tags, {\r
+ $("#interestingTagInput, #ignoredTagInput").autocomplete("/matching_tags", {\r
minChars: 1,\r
matchContains: true,\r
max: 20,\r
- multiple: true,\r
- multipleSeparator: " ",\r
- formatItem: function(row, i, max) {\r
- return row.n + " ("+ row.c +")";\r
+ /*multiple: false, - the favorite tags and ignore tags don't let you do multiple tags\r
+ multipleSeparator: " "*/\r
+\r
+ formatItem: function(row, i, max, value) {\r
+ return row[1].split(".")[0] + " (" + row[1].split(".")[1] + ")";\r
},\r
- formatResult: function(row, i, max){\r
- return row.n;\r
+\r
+ formatResult: function(row, i, max, value){\r
+ return row[0];\r
}\r
\r
});\r
}\r
\r
$(document).ready( function(){\r
- if (window.tags != undefined)\r
+ //if (window.tags != undefined)\r
pickedTags().init();\r
});\r
\r