Commit 0fd6e5be authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

made linebutton default if only available

parent 872b1259
...@@ -364,6 +364,8 @@ var STWkit; ...@@ -364,6 +364,8 @@ var STWkit;
self.pointButton.click(); self.pointButton.click();
else if (document.body.contains(self.circleButton) && self.circleButton.style.display != 'none') else if (document.body.contains(self.circleButton) && self.circleButton.style.display != 'none')
self.circleButton.click(); self.circleButton.click();
else if (document.body.contains(self.lineButton) && self.lineButton.style.display != 'none')
self.lineButton.click();
}; };
LocationCard.prototype.populateCard = function (geojson) { LocationCard.prototype.populateCard = function (geojson) {
var self = this; var self = this;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -392,6 +392,8 @@ module STWkit { ...@@ -392,6 +392,8 @@ module STWkit {
var self = this; var self = this;
if (document.body.contains(self.pointButton) && self.pointButton.style.display != 'none') self.pointButton.click(); if (document.body.contains(self.pointButton) && self.pointButton.style.display != 'none') self.pointButton.click();
else if (document.body.contains(self.circleButton) && self.circleButton.style.display != 'none') self.circleButton.click(); else if (document.body.contains(self.circleButton) && self.circleButton.style.display != 'none') self.circleButton.click();
else if (document.body.contains(self.lineButton) && self.lineButton.style.display != 'none') self.lineButton.click();
} }
public populateCard(geojson) { public populateCard(geojson) {
......
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