Never submit empty queries.

This commit is contained in:
Johannes 'fish' Ziemke 2013-05-02 16:55:47 +02:00
parent 5a07e8a7c6
commit c5e507cd9c
1 changed files with 3 additions and 0 deletions

View File

@ -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();