Merge pull request #927 from sgmap/localize_select2

Select2: fr localization
This commit is contained in:
LeSim 2017-10-30 14:31:40 +01:00 committed by GitHub
commit 56336dbc00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -18,5 +18,6 @@
//= require highcharts
//= require chartkick
//= require select2
//= require select2_locale_fr
//= require typeahead.bundle
//= require_tree .

View file

@ -1,7 +1,10 @@
document.addEventListener('turbolinks:load', function() {
$('select.select2').select2();
$('select.select2').select2({
'language': 'fr'
});
$('select.select2-limited').select2({
'language': 'fr',
'placeholder': 'Sélectionnez des colonnes',
'maximumSelectionLength': '5',
'width': '300px'