Focus expression after selection from dropdown

Change-Id: Id7f67e558e3611ab4c7188cc428c342d8d3e67db
This commit is contained in:
Andres Suarez 2014-09-16 12:20:31 -04:00 committed by Bjoern Rabenstein
parent 86a447fc0e
commit e389e63684

View file

@ -132,7 +132,7 @@ Prometheus.Graph.prototype.initialize = function() {
self.insertMetric.change(function() {
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.