Merge pull request #927 from sgmap/localize_select2
Select2: fr localization
This commit is contained in:
commit
56336dbc00
2 changed files with 5 additions and 1 deletions
|
@ -18,5 +18,6 @@
|
||||||
//= require highcharts
|
//= require highcharts
|
||||||
//= require chartkick
|
//= require chartkick
|
||||||
//= require select2
|
//= require select2
|
||||||
|
//= require select2_locale_fr
|
||||||
//= require typeahead.bundle
|
//= require typeahead.bundle
|
||||||
//= require_tree .
|
//= require_tree .
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
document.addEventListener('turbolinks:load', function() {
|
document.addEventListener('turbolinks:load', function() {
|
||||||
$('select.select2').select2();
|
$('select.select2').select2({
|
||||||
|
'language': 'fr'
|
||||||
|
});
|
||||||
|
|
||||||
$('select.select2-limited').select2({
|
$('select.select2-limited').select2({
|
||||||
|
'language': 'fr',
|
||||||
'placeholder': 'Sélectionnez des colonnes',
|
'placeholder': 'Sélectionnez des colonnes',
|
||||||
'maximumSelectionLength': '5',
|
'maximumSelectionLength': '5',
|
||||||
'width': '300px'
|
'width': '300px'
|
||||||
|
|
Loading…
Reference in a new issue