mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24: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;
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user