Commit f515e249 authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

mandatoryTxt

parent c28fd155
......@@ -319,7 +319,7 @@ var STWkit;
AccordionCard.enableNext(self.nextButton, false);
self.nextButton.onclick = function () {
if (!AccordionCard.isEnabled(self.nextButton)) {
AccordionCard.warningMsg('Mandatory fields missing', 'Specify a location by <b>manually entering</b> position or <b>draw</b> on the map.');
AccordionCard.warningMsg('Mandatory fields missing', self.mandatoryTxt());
return;
}
if (self.forcingBoundary)
......@@ -331,6 +331,9 @@ var STWkit;
});
return _this;
}
LocationCard.prototype.mandatoryTxt = function () {
return 'Specify a location by <b>manually entering</b> position or <b>draw</b> on the map.';
};
LocationCard.prototype.show = function () {
_super.prototype.show.call(this);
};
......
This diff is collapsed.
......@@ -348,8 +348,7 @@ module STWkit {
self.nextButton.onclick = function () {
if (!AccordionCard.isEnabled(self.nextButton)) {
AccordionCard.warningMsg('Mandatory fields missing',
'Specify a location by <b>manually entering</b> position or <b>draw</b> on the map.');
AccordionCard.warningMsg('Mandatory fields missing', self.mandatoryTxt());
return;
}
if (self.forcingBoundary) self.forcingBoundary.hide();
......@@ -360,6 +359,10 @@ module STWkit {
});
}
public mandatoryTxt() {
return 'Specify a location by <b>manually entering</b> position or <b>draw</b> on the map.';
}
public show() {
super.show();
......
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