Merge pull request #525 from eventcally/issues/524

Planning: Input for nearby filter not working in modal #524
This commit is contained in:
Daniel Grams 2023-07-18 22:53:42 +02:00 committed by GitHub
commit e8b32b0d8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View File

@ -858,12 +858,15 @@
</div>
{% endmacro %}
{% macro render_google_filter_autocomplete_header() %}
{% macro render_google_filter_autocomplete_header(dropdownParent=None) %}
<script>
$( function() {
$('#location').select2({
theme: 'bootstrap4',
{% if dropdownParent -%}
dropdownParent: {{ dropdownParent | safe }},
{%- endif %}
ajax: {
url: "{{ url_for('js_autocomplete_place') }}",
dataType: 'json',

View File

@ -48,7 +48,7 @@ vue_init_data.vuetify = new Vuetify();
{% block header %}
{{ render_jquery_steps_header() }}
{{ render_google_filter_autocomplete_header() }}
{{ render_google_filter_autocomplete_header(dropdownParent="$('#filterFormModal')") }}
<script>
$( function() {

View File

@ -30,7 +30,7 @@ click-repl==0.2.0
colour==0.1.5
coverage==5.5
coveralls==3.3.1
cryptography==41.0.0
cryptography==41.0.2
decorator==5.1.0
distlib==0.3.6
dnspython==2.0.0
@ -111,7 +111,7 @@ python-dotenv==0.15.0
python-editor==1.0.4
pytoolconfig==1.2.5
pytz==2022.7.1
PyYAML==5.4.1
PyYAML==6.0.1
qrcode==6.1
redis==4.5.4
regex==2023.3.23