commit | 9a2362d55a84e7510372434f5b8672e2f6a1fc87 | [log] [tgz] |
---|---|---|
author | Timo Tijhof <krinklemail@gmail.com> | Thu Aug 24 12:55:00 2017 -0600 |
committer | David Shrewsbury <shrewsbury.dave@gmail.com> | Tue Sep 19 14:52:30 2017 -0400 |
tree | b0e12208d463453df239c54dd51c217641f3351c | |
parent | 9de39ffc41ad01cc517282bc65081880ee0fc4ac [diff] [blame] |
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
diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js index 1937cd5..55384af 100644 --- a/etc/status/public_html/jquery.zuul.js +++ b/etc/status/public_html/jquery.zuul.js
@@ -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'); });