removes admin.js manifest and favors forms.js
This commit is contained in:
committed by
Juanjo Bazán
parent
310217d65f
commit
bc0a8542c2
12
app/assets/javascripts/forms.js.coffee
Normal file
12
app/assets/javascripts/forms.js.coffee
Normal 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
|
||||
)
|
||||
Reference in New Issue
Block a user