Don't alert() when a query is aborted,

such as when you change the range.

Change-Id: I574504f97446ac5f3dda737fe054ae83f17dbbc2
This commit is contained in:
Brian Brazil 2014-10-15 15:38:09 +01:00
parent 080b952647
commit 50a995c8de

View file

@ -311,7 +311,9 @@ Prometheus.Graph.prototype.submitQuery = function() {
data: self.queryForm.serialize(),
success: success,
error: function(xhr, resp) {
alert("Error executing query: " + resp);
if (resp != "abort") {
alert("Error executing query: " + resp);
}
},
complete: function() {
var duration = new Date().getTime() - startTime;