mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-25 05:34:05 -08:00
Prevent unnecessary reload.
This commit is contained in:
parent
f170720f61
commit
c0b5ba6512
|
@ -218,17 +218,18 @@ Prometheus.Graph.prototype.setEndDate = function(date) {
|
|||
date.getHours() + ':' + date.getMinutes()
|
||||
self.endDate.val("")
|
||||
self.endDate.appendDtpicker({"current": dateString})
|
||||
self.submitQuery();
|
||||
};
|
||||
|
||||
Prometheus.Graph.prototype.increaseEnd = function() {
|
||||
var self = this;
|
||||
self.setEndDate(new Date(self.getOrSetEndDate() + self.parseRange(self.rangeInput.val()) * 1000))
|
||||
self.submitQuery();
|
||||
};
|
||||
|
||||
Prometheus.Graph.prototype.decreaseEnd = function() {
|
||||
var self = this;
|
||||
self.setEndDate(new Date(self.getOrSetEndDate() - self.parseRange(self.rangeInput.val()) * 1000))
|
||||
self.submitQuery();
|
||||
};
|
||||
|
||||
Prometheus.Graph.prototype.submitQuery = function() {
|
||||
|
|
Loading…
Reference in a new issue