Geo fields: only confirm/overwrite if new lat/lon differ from existing coordinates

This commit is contained in:
Richard Schreiber
2021-02-26 15:20:14 +01:00
parent 5992892035
commit 675de12a5d

View File

@@ -46,7 +46,10 @@ $(function () {
lat = res.results[0].lat;
lon = res.results[0].lon;
if (touched) {
if ($lat.val() == lat && $lon.val() == lon) {
$notifications.attr("data-notify", "");
}
else if (touched) {
$notifications.attr("data-notify", "confirm");
}
else {