JangoSteve / remotipart

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

ajax.complete is deprecated in jQuery 3+ #192

Closed trickford closed 6 years ago

trickford commented 6 years ago

As of jQuery 3.0, the complete callback as been removed and replaces with always:

http://api.jquery.com/jquery.ajax/

Deprecation Notice: The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks are removed as of jQuery 3.0. You can use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.

https://github.com/JangoSteve/remotipart/blob/ed507d21e309f95443cb7b76cc2396e0839cab1e/vendor/assets/javascripts/jquery.remotipart.js#L54