JangoSteve / remotipart

Rails jQuery file uploads via standard Rails "remote: true" forms.
http://os.alfajango.com/remotipart
Other
1k stars 215 forks source link

Use ajax.done instead of deprecated ajax.complete #190

Closed bunnymatic closed 6 years ago

bunnymatic commented 6 years ago

As it turns out... $.ajax.complete has been deprecated for a while. We just upgraded jQuery and it's now gone.

This PR should help moving towards Rails5 and more modern jQuery support.

sbleon commented 6 years ago

Thanks for creating this PR, @bunnymatic ! I hope it can be merged and released soon, since remotipart is now failing with a (likely) silent JS error when used with jQuery 3.x