select_multiple: add select2
This commit is contained in:
parent
3ed14bf1a4
commit
1fa1e9e8e8
5 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
|
6
app/assets/javascripts/user/description.js
Normal file
6
app/assets/javascripts/user/description.js
Normal file
|
@ -0,0 +1,6 @@
|
|||
$(document).on('page:load', activeSelect2);
|
||||
$(document).ready(activeSelect2);
|
||||
|
||||
function activeSelect2() {
|
||||
$('select.select2').select2({ theme: "bootstrap", width: '100%' });
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue