Merge pull request #568 from eventcally/issues/567

Bugfix for place selection when creating an event #567
This commit is contained in:
Daniel Grams 2024-02-10 17:33:23 +01:00 committed by GitHub
commit 70b696b4b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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();