Migrate jQuery function use for ajax in case of success or failure

Deprecation Notice:

The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callbacks will be deprecated in jQuery 1.8. To prepare your code for their eventual removal, use jqXHR.done(), jqXHR.fail(), and jqXHR.always() instead.
This commit is contained in:
Sebastian Serth
2018-11-26 12:23:30 +01:00
parent 0fbbe97ae4
commit 16a5345a71
4 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ CodeOceanEditorSubmissions = {
this.ajax({
method: 'GET',
url: $('#start-over').data('url')
}).success(function(response) {
}).done(function(response) {
this.hideSpinner();
_.each(this.editors, function(editor) {
var file_id = $(editor.container).data('file-id');