From c5e507cd9c448486f1658452550ccdf6482e2744 Mon Sep 17 00:00:00 2001 From: Johannes 'fish' Ziemke Date: Thu, 2 May 2013 16:55:47 +0200 Subject: [PATCH] Never submit empty queries. --- web/static/js/graph.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/static/js/graph.js b/web/static/js/graph.js index 55649ca56..385d78730 100644 --- a/web/static/js/graph.js +++ b/web/static/js/graph.js @@ -275,6 +275,9 @@ Prometheus.Graph.prototype.decreaseEnd = function() { Prometheus.Graph.prototype.submitQuery = function() { var self = this; + if (!self.expr.val()) { + return + } self.spinner.show(); self.evalStats.empty();