Enable select2 for timezone picker.

- Legacy-Id: 19910
This commit is contained in:
Lars Eggert 2022-02-09 08:19:36 +00:00
parent bbf088e18b
commit 7a86a1cac2

View file

@ -27,7 +27,9 @@
onclick="ietf_timezone.use('UTC')">
<label class="btn btn-outline-primary" for="utc-timezone{{ id_suffix }}">UTC</label>
<select id="timezone-select{{ id_suffix }}"
class="tz-select form-select border-primary text-primary">
class="tz-select select2-field form-select border-primary"
data-max-entries="1" data-minimum-input-length="0"
onchange="$('.tz-display input[name=tzradio]').prop('checked', false);">
{# Avoid blank while loading. JavaScript replaces the option list after init. #}
<option selected>
{{ timezone }}