Changed id type to uuid.

This commit is contained in:
Naida Vatric
2020-02-13 10:43:30 +01:00
parent 9c234a85fd
commit 9bcadffe9c
11 changed files with 72 additions and 39 deletions

View File

@@ -149,14 +149,9 @@
}
$("#submit").click( function () {
const mapBounds = map.getBounds();
const currentLocation = marker.getPosition();
$("#north").val(mapBounds.getNorthEast().lat());
$("#south").val(mapBounds.getSouthWest().lat());
$("#east").val(mapBounds.getNorthEast().lng());
$("#west").val(mapBounds.getSouthWest().lng());
if (marker) {
const currentLocation = marker.getPosition();
$("#lat").val(currentLocation.lat());
@@ -164,7 +159,13 @@
$("#locationInput").val(
document.getElementById("autocompleteInput").value
);
);
} else {
$("#lat").val(0);
$("#lng").val(0);
}
//Tag for checking of error presence
let hasErrors = false;