Show unlimited number of metrics in autocomplete.

This commit is contained in:
Julius Volz 2015-02-06 02:03:08 +01:00
parent 6e296648ed
commit 517a731ebf
1 changed files with 4 additions and 1 deletions

View File

@ -160,7 +160,10 @@ Prometheus.Graph.prototype.populateInsertableMetrics = function() {
self.insertMetric[0].options.add(new Option(json[i], json[i]));
availableMetrics.push(json[i]);
}
self.expr.typeahead({source: availableMetrics});
self.expr.typeahead({
source: availableMetrics,
items: "all"
});
// This needs to happen after attaching the typeahead plugin, as it
// otherwise breaks the typeahead functionality.
self.expr.focus();