demarches-normaliennes/app/javascript/new_design/champs/multiple-drop-down-list.js
2018-07-25 15:14:06 +02:00

13 lines
290 B
JavaScript

addEventListener('turbolinks:load', () => {
$('select.select2').select2({
language: 'fr',
width: '100%'
});
$('select.select2-limited').select2({
language: 'fr',
placeholder: 'Sélectionnez des colonnes',
maximumSelectionLength: '5',
width: '300px'
});
});