Scope the select2 config call
This commit is contained in:
parent
f555c44f15
commit
523edac4c5
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ addEventListener('turbolinks:load', () => {
|
|||
width: '100%'
|
||||
});
|
||||
|
||||
$('select.select2-limited').select2({
|
||||
$('.columns-form select.select2-limited').select2({
|
||||
language: 'fr',
|
||||
placeholder: 'Sélectionnez des colonnes',
|
||||
maximumSelectionLength: '5',
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
%span.button.dropdown
|
||||
Personnaliser
|
||||
.dropdown-content.fade-in-down
|
||||
= form_tag update_displayed_fields_gestionnaire_procedure_path(@procedure), method: :patch, class: 'dropdown-form' do
|
||||
= form_tag update_displayed_fields_gestionnaire_procedure_path(@procedure), method: :patch, class: 'dropdown-form columns-form' do
|
||||
= select_tag :values,
|
||||
options_for_select(@procedure.fields_for_select,
|
||||
selected: @displayed_fields_values),
|
||||
|
|
Loading…
Reference in a new issue