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

added clear on location for depth

parent 9c677616
......@@ -103,6 +103,14 @@ var OSLocation = (function (_super) {
geojson.features[0].properties["observation"].push(observation);
geojson.features[0].properties["simulation"]["depth"] = self.depthInput.value;
};
OSLocation.prototype.clear = function () {
var self = this;
_super.prototype.clear.call(this);
self.depthInput.value = '0';
STWkit.AccordionCard.enableNext(self.nextButton, false);
self.status = false;
(self.oncallback && self.oncallback());
};
return OSLocation;
}(STWkit.LocationCard));
var OSAmount = (function (_super) {
......
This diff is collapsed.
......@@ -113,7 +113,16 @@ class OSLocation extends STWkit.LocationCard {
geojson.features[0].properties["observation"].push(observation);
geojson.features[0].properties["simulation"]["depth"] = self.depthInput.value;
}
}
public clear() {
var self = this;
super.clear();
self.depthInput.value = '0';
STWkit.AccordionCard.enableNext(self.nextButton, false);
self.status = false;
(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