diff --git a/src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js b/src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js index 166896fc94e2c7e3f2b28e507d1617312a20f074..c40ed21ec92833987b72b2575f89f283eda3b443 100644 --- a/src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js +++ b/src/main/resources/eu/simstadt/regionchooser/website/script/simstadt_openlayers.js @@ -284,8 +284,8 @@ var regionChooser = (function(){ dataPanel.append("<h3 class='clean'>Area : " + (area / 10000).toFixed(1) + " ha\n"); dataPanel.append('<div style="visibility:hidden" id="download_region">' + '<button type="button" onclick="regionChooser.downloadFromSelectedCityGMLs()" id="download_region_button" disabled>Download Region</button><br/>\n' + - '<a href="#" onclick="regionChooser.checkCityGMLS(true);">(Select All)</a>\n' + - '<a href="#" onclick="regionChooser.checkCityGMLS(false);">(Select None)</a>\n'+ + '<a href="#" onclick="regionChooser.selectAllOrNone(true);">(Select All)</a>\n' + + '<a href="#" onclick="regionChooser.selectAllOrNone(false);">(Select None)</a>\n'+ '</div>\n'); findIntersections(); dataPanel.append('<button type="button" onclick="regionChooser.copyCoordinatesToClipboard()" id="get_wgs84">Copy coordinates</button><br/>\n') @@ -384,7 +384,7 @@ var regionChooser = (function(){ publicScope.downloadRegionFromCityGMLs(checkedBoxes.map(c => c.id)); } - publicScope.checkCityGMLS = function(allOrNone) { + publicScope.selectAllOrNone = function(allOrNone) { document.querySelectorAll("input.select_citygml").forEach(c => c.checked = allOrNone); publicScope.isDownloadPossible(); }