From dba246e97a844ba36fb1d6a8082def1d30997c88 Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Tue, 16 Sep 2014 12:20:31 -0400 Subject: [PATCH] Focus expression after selection from dropdown Change-Id: Id7f67e558e3611ab4c7188cc428c342d8d3e67db --- web/static/js/graph.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/static/js/graph.js b/web/static/js/graph.js index 273986163..418d15ced 100644 --- a/web/static/js/graph.js +++ b/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.