Status: Remove use of deprecated jQuery jqXHR `complete` method

This has been deprecated for a long time, and was removed in
jQuery 3.0 per <https://api.jquery.com/jQuery.ajax/#jqXHR>

jqXHR.always() has been available since jQuery 1.6.

Cherry-picked from: I4498e3b63d07d019db51b4f04a1dd20ebc7c1167

Change-Id: I4498e3b63d07d019db51b4f04a1dd20ebc7c1167
This commit is contained in:
Timo Tijhof 2017-08-24 12:55:00 -06:00 committed by David Shrewsbury
parent 9de39ffc41
commit 9a2362d55a
1 changed files with 2 additions and 2 deletions

View File

@ -652,7 +652,7 @@
setTimeout(function() {app.schedule(app);}, 5000);
return;
}
app.update().complete(function () {
app.update().always(function () {
setTimeout(function() {app.schedule(app);}, 5000);
});
@ -722,7 +722,7 @@
.removeClass('zuul-msg-wrap-off')
.show();
})
.complete(function () {
.always(function () {
xhr = undefined;
app.emit('update-end');
});