Prevent unnecessary reload.

This commit is contained in:
Johannes 'fish' Ziemke 2013-03-21 17:44:21 +01:00
parent f170720f61
commit c0b5ba6512

View file

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