mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Geo fields: only confirm/overwrite if new lat/lon differ from existing coordinates
This commit is contained in:
@@ -46,7 +46,10 @@ $(function () {
|
|||||||
|
|
||||||
lat = res.results[0].lat;
|
lat = res.results[0].lat;
|
||||||
lon = res.results[0].lon;
|
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");
|
$notifications.attr("data-notify", "confirm");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user