los javascripts en sus propios archivos

This commit is contained in:
f 2018-02-10 20:11:47 -03:00
parent a0a0598f83
commit aeeef64c83
No known key found for this signature in database
GPG key ID: F3FDAB97B5F9F7E7
2 changed files with 3 additions and 5 deletions

View file

@ -0,0 +1,3 @@
$(document).on('turbolinks:load', function() {
$('.select2').select2({ tags: true, tokenSeparators: [',']});
});

View file

@ -120,8 +120,3 @@
%small.text-muted.form-text= t('posts.lang_help')
.form-group
= submit_tag t('posts.save'), class: 'btn btn-success'
:javascript
$(document).on('turbolinks:load', function() {
$('.select2').select2({ tags: true, tokenSeparators: [',']});
});