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%'
|
width: '100%'
|
||||||
});
|
});
|
||||||
|
|
||||||
$('select.select2-limited').select2({
|
$('.columns-form select.select2-limited').select2({
|
||||||
language: 'fr',
|
language: 'fr',
|
||||||
placeholder: 'Sélectionnez des colonnes',
|
placeholder: 'Sélectionnez des colonnes',
|
||||||
maximumSelectionLength: '5',
|
maximumSelectionLength: '5',
|
||||||
|
|
|
@ -81,7 +81,7 @@
|
||||||
%span.button.dropdown
|
%span.button.dropdown
|
||||||
Personnaliser
|
Personnaliser
|
||||||
.dropdown-content.fade-in-down
|
.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,
|
= select_tag :values,
|
||||||
options_for_select(@procedure.fields_for_select,
|
options_for_select(@procedure.fields_for_select,
|
||||||
selected: @displayed_fields_values),
|
selected: @displayed_fields_values),
|
||||||
|
|
Loading…
Reference in a new issue