app/assets/javascripts/comable/admin/application.coffee in comable_backend-0.3.4 vs app/assets/javascripts/comable/admin/application.coffee in comable_backend-0.4.0
- old
+ new
@@ -90,9 +90,13 @@
initialize_comable_affix()
resize_comable_affix()
$(window).on('resize', resize_comable_affix)
$('[data-toggle="tooltip"]').tooltip()
+
+ $(document).on('change', '.btn-file :file', ->
+ $(this).closest('form').submit()
+ )
)
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
class @Search