Skip to content

Commit

Permalink
Subscribe to turbo instead of turbolinks events
Browse files Browse the repository at this point in the history
  • Loading branch information
amaierhofer committed Feb 21, 2024
1 parent 0ef6fb3 commit f8b4275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/javascripts/wagon.js.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import './_cost_accounting_note_copier.js.coffee'
$(document).on('click', '.cancel[href="#"]', (event) ->
$(this).closest('form').get(0).reset())

$(document).on('turbolinks:load', ->
$(document).on('turbo:load', ->
$('#person_manual_number').on('change', (event) ->
$('#person_number').prop('disabled', !this.checked) )

Expand Down

0 comments on commit f8b4275

Please sign in to comment.