2018-08-09 11:53:59 +02:00
|
|
|
import $ from 'jquery';
|
2018-08-22 14:47:56 +02:00
|
|
|
import 'select2';
|
2018-08-09 11:53:59 +02:00
|
|
|
|
2018-07-12 11:50:47 +02:00
|
|
|
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'
|
|
|
|
});
|
|
|
|
});
|