app/javascript/packs/forms.coffee
document.addEventListener 'turbolinks:load', ->
# /invoices/_change_account_header.html.haml
$("#change_account_header input[type='submit']").hide()
$("#change_account_header input[type='checkbox']").change ->
$(this).closest("form").submit()
# /services/_date_bar_forms.html.haml
# /reports/_select_month_or_year_form.html.haml
$(".view_by_selection input[type='submit']").hide()
$(".view_by_selection").change ->
$(this).closest("form").submit()