mirror of
https://github.com/prometheus/prometheus
synced 2024-12-27 17:13:22 +00:00
Don't alert() when a query is aborted,
such as when you change the range. Change-Id: I574504f97446ac5f3dda737fe054ae83f17dbbc2
This commit is contained in:
parent
0e48c18bbf
commit
75e37db55b
@ -311,7 +311,9 @@ Prometheus.Graph.prototype.submitQuery = function() {
|
|||||||
data: self.queryForm.serialize(),
|
data: self.queryForm.serialize(),
|
||||||
success: success,
|
success: success,
|
||||||
error: function(xhr, resp) {
|
error: function(xhr, resp) {
|
||||||
|
if (resp != "abort") {
|
||||||
alert("Error executing query: " + resp);
|
alert("Error executing query: " + resp);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
complete: function() {
|
complete: function() {
|
||||||
var duration = new Date().getTime() - startTime;
|
var duration = new Date().getTime() - startTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user