forked from CGM_Public/pretix_original
Select2: Set closeOnSelect for event selection
This commit is contained in:
@@ -625,6 +625,7 @@ var form_handlers = function (el) {
|
|||||||
el.find('[data-model-select2=event]').each(function () {
|
el.find('[data-model-select2=event]').each(function () {
|
||||||
var $s = $(this);
|
var $s = $(this);
|
||||||
$s.select2({
|
$s.select2({
|
||||||
|
closeOnSelect: !this.hasAttribute('multiple'),
|
||||||
theme: "bootstrap",
|
theme: "bootstrap",
|
||||||
delay: 100,
|
delay: 100,
|
||||||
allowClear: !$s.prop("required"),
|
allowClear: !$s.prop("required"),
|
||||||
|
|||||||
Reference in New Issue
Block a user