Skip to content

Commit

Permalink
Turbolinks 5 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
olegantonyan committed Apr 12, 2016
1 parent 0d8ddca commit f44ef56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assets/javascripts/nested_form_fields.js.coffee
Expand Up @@ -53,7 +53,7 @@ nested_form_fields.bind_nested_forms_links = () ->
$nested_fields_container.trigger("fields_removed.nested_form_fields",{object_class: object_class, delete_association_field_name: delete_association_field_name, removed_index: removed_index});
false

$(document).on "page:change", ->
$(document).on "page:change turbolinks:load", ->
nested_form_fields.bind_nested_forms_links()

jQuery ->
Expand Down

0 comments on commit f44ef56

Please sign in to comment.