Just my $0.02, it seems a bit unstable that the updateTextFields function is not defined until the page is loaded. This will help stabilize it for people who aren't using Turbolinks, but I think a more stable approach would be to define this outside the ready callback, and simply call it once in the ready callback for default initialization of forms.
Just my $0.02, it seems a bit unstable that the
updateTextFields
function is not defined until the page is loaded. This will help stabilize it for people who aren't using Turbolinks, but I think a more stable approach would be to define this outside theready
callback, and simply call it once in theready
callback for default initialization of forms.