Allow selecting metric from Insert Metric

Change-Id: I99e0539cab2749a8aeabc0a13015889ff45834f7
This commit is contained in:
Andres Suarez 2014-09-16 12:13:11 -04:00 committed by Julius Volz
parent de337e6404
commit 76527bae8b

View file

@ -134,7 +134,6 @@ Prometheus.Graph.prototype.initialize = function() {
self.expr.selection("replace", {text: self.insertMetric.val(), mode: "before"}); self.expr.selection("replace", {text: self.insertMetric.val(), mode: "before"});
self.insertMetric.focus(); // refocusing self.insertMetric.focus(); // refocusing
}); });
self.insertMetric.click(function() { self.expr.focus() });
self.expr.focus(); // TODO: move to external Graph method. self.expr.focus(); // TODO: move to external Graph method.