Multiple select se nemají zavírat
Už jsem se internetu správně zeptal a dostal odpověď: select2 bere parametry jako atributy data-camel-case-vec=cosi (stejné jako select2({camelCaseVec: cosi}))
This commit is contained in:
parent
727d0b2955
commit
2ef3311bff
1 changed files with 4 additions and 0 deletions
|
@ -29,6 +29,7 @@ class PosliReseniForm(forms.Form):
|
|||
attrs={
|
||||
'data-placeholder--id': '-1',
|
||||
'data-placeholder--text': '---',
|
||||
'data-close-on-select': 'false',
|
||||
'data-allow-clear': 'true'
|
||||
},
|
||||
),
|
||||
|
@ -43,6 +44,7 @@ class PosliReseniForm(forms.Form):
|
|||
url='autocomplete_resitel',
|
||||
attrs = {'data-placeholder--id': '-1',
|
||||
'data-placeholder--text' : '---',
|
||||
'data-close-on-select': 'false',
|
||||
'data-allow-clear': 'true'})
|
||||
)
|
||||
|
||||
|
@ -74,6 +76,7 @@ class NahrajReseniForm(forms.ModelForm):
|
|||
url='autocomplete_problem_odevzdatelny',
|
||||
attrs = {'data-placeholder--id': '-1',
|
||||
'data-placeholder--text' : '---',
|
||||
'data-close-on-select': 'false',
|
||||
'data-allow-clear': 'true'},
|
||||
forward=["nadproblem_id"],
|
||||
),
|
||||
|
@ -82,6 +85,7 @@ class NahrajReseniForm(forms.ModelForm):
|
|||
url='autocomplete_resitel_public',
|
||||
attrs = {'data-placeholder--id': '-1',
|
||||
'data-placeholder--text' : '---',
|
||||
'data-close-on-select': 'false',
|
||||
'data-allow-clear': 'true'},
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue