Focus expression after selection from dropdown

Change-Id: Id7f67e558e3611ab4c7188cc428c342d8d3e67db
pull/413/head
Andres Suarez 10 years ago committed by Bjoern Rabenstein
parent 86a447fc0e
commit e389e63684

@ -132,7 +132,7 @@ Prometheus.Graph.prototype.initialize = function() {
self.insertMetric.change(function() { self.insertMetric.change(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.expr.focus(); // refocusing
}); });
self.expr.focus(); // TODO: move to external Graph method. self.expr.focus(); // TODO: move to external Graph method.

Loading…
Cancel
Save