autocomplete: display autocorrected tags like aliases.
Display autocorrected tags similar to aliases, with an arrow pointing at the corrected tag, but with a dotted underline beneath the misspelled tag to indicate that it's misspelled.
This commit is contained in:
@@ -182,6 +182,8 @@ Autocomplete.render_item = function(list, item) {
|
||||
|
||||
if (item.type === "tag") {
|
||||
$link.addClass("tag-type-" + item.category);
|
||||
} else if (item.type === "tag_autocorrect") {
|
||||
$link.addClass(`tag-type-${item.category} tag-type-autocorrect`);
|
||||
} else if (item.type === "user") {
|
||||
var level_class = "user-" + item.level.toLowerCase();
|
||||
$link.addClass(level_class);
|
||||
|
||||
Reference in New Issue
Block a user