mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 23:54:05 -08:00
Merge pull request #510 from prometheus/unlimited-autocomplete
Show unlimited number of metrics in autocomplete.
This commit is contained in:
commit
198ac9538b
|
@ -160,7 +160,10 @@ Prometheus.Graph.prototype.populateInsertableMetrics = function() {
|
||||||
self.insertMetric[0].options.add(new Option(json[i], json[i]));
|
self.insertMetric[0].options.add(new Option(json[i], json[i]));
|
||||||
availableMetrics.push(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
|
// This needs to happen after attaching the typeahead plugin, as it
|
||||||
// otherwise breaks the typeahead functionality.
|
// otherwise breaks the typeahead functionality.
|
||||||
self.expr.focus();
|
self.expr.focus();
|
||||||
|
|
Loading…
Reference in a new issue