los javascripts en sus propios archivos
This commit is contained in:
parent
a0a0598f83
commit
aeeef64c83
2 changed files with 3 additions and 5 deletions
3
app/assets/javascripts/select2.js
Normal file
3
app/assets/javascripts/select2.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
$(document).on('turbolinks:load', function() {
|
||||||
|
$('.select2').select2({ tags: true, tokenSeparators: [',']});
|
||||||
|
});
|
|
@ -120,8 +120,3 @@
|
||||||
%small.text-muted.form-text= t('posts.lang_help')
|
%small.text-muted.form-text= t('posts.lang_help')
|
||||||
.form-group
|
.form-group
|
||||||
= submit_tag t('posts.save'), class: 'btn btn-success'
|
= submit_tag t('posts.save'), class: 'btn btn-success'
|
||||||
|
|
||||||
:javascript
|
|
||||||
$(document).on('turbolinks:load', function() {
|
|
||||||
$('.select2').select2({ tags: true, tokenSeparators: [',']});
|
|
||||||
});
|
|
||||||
|
|
Loading…
Reference in a new issue