Commit 5ca02579 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

period update - fire change on successful validate

parent 0fd6e5be
...@@ -491,12 +491,10 @@ var STWkit; ...@@ -491,12 +491,10 @@ var STWkit;
self.forwardButton.onclick = function () { self.forwardButton.onclick = function () {
self.forward = true; self.forward = true;
self.updateFromStartDate(); self.updateFromStartDate();
self.fireChangeFn(self);
}; };
self.backwardButton.onclick = function () { self.backwardButton.onclick = function () {
self.forward = false; self.forward = false;
self.updateFromStartDate(); self.updateFromStartDate();
self.fireChangeFn(self);
}; };
var clearDiv = L.DomUtil.create('div', 'uk-clearfix', periodDiv); var clearDiv = L.DomUtil.create('div', 'uk-clearfix', periodDiv);
var clearButton = L.DomUtil.create('button', 'uk-button uk-margin-top uk-align-left', clearDiv); var clearButton = L.DomUtil.create('button', 'uk-button uk-margin-top uk-align-left', clearDiv);
...@@ -643,6 +641,7 @@ var STWkit; ...@@ -643,6 +641,7 @@ var STWkit;
return; return;
} }
self.status = true; self.status = true;
self.fireChangeFn(self);
AccordionCard.enableNext(self.nextButton, true); AccordionCard.enableNext(self.nextButton, true);
(self.oncallback && self.oncallback()); (self.oncallback && self.oncallback());
}; };
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -542,12 +542,10 @@ module STWkit { ...@@ -542,12 +542,10 @@ module STWkit {
self.forwardButton.onclick = function () { self.forwardButton.onclick = function () {
self.forward = true; self.forward = true;
self.updateFromStartDate(); self.updateFromStartDate();
self.fireChangeFn(self);
}; };
self.backwardButton.onclick = function () { self.backwardButton.onclick = function () {
self.forward = false; self.forward = false;
self.updateFromStartDate(); self.updateFromStartDate();
self.fireChangeFn(self);
}; };
var clearDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-clearfix', periodDiv); var clearDiv = <HTMLDivElement>L.DomUtil.create('div', 'uk-clearfix', periodDiv);
...@@ -704,6 +702,7 @@ module STWkit { ...@@ -704,6 +702,7 @@ module STWkit {
if (duration == 0) return; if (duration == 0) return;
} }
self.status = true; self.status = true;
self.fireChangeFn(self);
AccordionCard.enableNext(self.nextButton, true); AccordionCard.enableNext(self.nextButton, true);
(self.oncallback && self.oncallback()); (self.oncallback && self.oncallback());
} }
......
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