Browse Source

Focus expression after selection from dropdown

Change-Id: Id7f67e558e3611ab4c7188cc428c342d8d3e67db
pull/413/head
Andres Suarez 10 years ago committed by Bjoern Rabenstein
parent
commit
e389e63684
  1. 2
      web/static/js/graph.js

2
web/static/js/graph.js

@ -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.

Loading…
Cancel
Save