removes admin.js manifest and favors forms.js

This commit is contained in:
Juanjo Bazán
2016-02-25 12:24:50 +01:00
committed by Juanjo Bazán
parent 310217d65f
commit bc0a8542c2
7 changed files with 18 additions and 37 deletions

View File

@@ -0,0 +1,12 @@
App.Forms =
initialize: ->
$('.js-submit-on-change').unbind('change').on('change', ->
$(this).closest('form').submit()
false
)
$('.js-toggle-link').unbind('click').on('click', ->
$($(this).data('toggle-selector')).toggle("down")
false
)