Commit a7f0790d authored by Pettersson Tomas's avatar Pettersson Tomas

changefn update

parent 6b2cdd44
...@@ -618,10 +618,8 @@ var STWkit; ...@@ -618,10 +618,8 @@ var STWkit;
if (changeCard.updateto.isBefore(self.minDate) || changeCard.updateto.isAfter(self.maxDate)) if (changeCard.updateto.isBefore(self.minDate) || changeCard.updateto.isAfter(self.maxDate))
return; return;
self.to = changeCard.updateto.clone(); self.to = changeCard.updateto.clone();
self.adjustDateToRange();
self.updateSlider(); self.updateSlider();
if (self.ready) // if (self.ready) self.validate();
self.validate();
} }
}; };
PeriodCard.prototype.isDateValid = function (date) { PeriodCard.prototype.isDateValid = function (date) {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -679,9 +679,8 @@ module STWkit { ...@@ -679,9 +679,8 @@ module STWkit {
if ((typeof changeCard.updateto !== 'undefined')) { if ((typeof changeCard.updateto !== 'undefined')) {
if (changeCard.updateto.isBefore(self.minDate) || changeCard.updateto.isAfter(self.maxDate)) return; if (changeCard.updateto.isBefore(self.minDate) || changeCard.updateto.isAfter(self.maxDate)) return;
self.to = changeCard.updateto.clone(); self.to = changeCard.updateto.clone();
self.adjustDateToRange();
self.updateSlider(); self.updateSlider();
if (self.ready) self.validate(); // if (self.ready) self.validate();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment