select_multiple: add select2

This commit is contained in:
Simon Lehericey 2017-03-15 17:49:48 +01:00
parent 3ed14bf1a4
commit 1fa1e9e8e8
5 changed files with 14 additions and 0 deletions

View file

@ -31,6 +31,7 @@
//= require bootstrap-wysihtml5/locales/fr-FR
//= require handlebars
//= require typeahead.bundle
//= require select2
$(document).on('page:load', application_init);
$(document).ready(application_init);

View file

@ -0,0 +1,6 @@
$(document).on('page:load', activeSelect2);
$(document).ready(activeSelect2);
function activeSelect2() {
$('select.select2').select2({ theme: "bootstrap", width: '100%' });
}