Merge pull request #510 from prometheus/unlimited-autocomplete

Show unlimited number of metrics in autocomplete.
This commit is contained in:
juliusv 2015-02-06 11:00:03 +01:00
commit 198ac9538b

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();