Remove custom highlight code, it's not needed. (#5163)

Signed-off-by: Brian Brazil <brian.brazil@robustperception.io>
This commit is contained in:
Goutham Veeramachaneni 2019-01-31 11:27:18 +01:00 committed by GitHub
parent 10ae00ab9d
commit b03d6f6eff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -310,11 +310,7 @@ Prometheus.Graph.prototype.initTypeahead = function(self) {
return i === 0 ? a.localeCompare(b) : i; return i === 0 ? a.localeCompare(b) : i;
}); });
return items; return items;
}, }
highlighter: function (item) {
return $("<div>" + self.fuzzyResult.map[item].string + "</div>");
},
}); });
// This needs to happen after attaching the typeahead plugin, as it // This needs to happen after attaching the typeahead plugin, as it
// otherwise breaks the typeahead functionality. // otherwise breaks the typeahead functionality.