Bugfix for place selection when creating an event #567

This commit is contained in:
Daniel Grams 2024-02-10 16:31:41 +01:00
parent 60d3e03dac
commit e27f21a78b

View File

@ -820,9 +820,9 @@
$(this).val(null).trigger('change'); $(this).val(null).trigger('change');
var location_only = $(this).attr("data-location-only"); var location_only = $(this).attr("data-location-only");
if (location_only) { if (location_only) {
reset_location_form(); reset_location_form("{{ target_prefix }}");
} else { } else {
reset_place_form(); reset_place_form("{{ target_prefix }}");
$('#place-name').val(data.main_text); $('#place-name').val(data.main_text);
if ($('#place-name').length > 0 && $.isFunction($('#place-name').valid)) { if ($('#place-name').length > 0 && $.isFunction($('#place-name').valid)) {
$('#place-name').valid(); $('#place-name').valid();