From 3dbedbfa77fe4019b09b213c5267c7af93cf0771 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Thu, 24 Aug 2017 12:55:00 -0600 Subject: [PATCH] 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 jqXHR.always() has been available since jQuery 1.6. Change-Id: I4498e3b63d07d019db51b4f04a1dd20ebc7c1167 --- etc/status/public_html/jquery.zuul.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/status/public_html/jquery.zuul.js b/etc/status/public_html/jquery.zuul.js index d973948be8..46c7785bb5 100644 --- a/etc/status/public_html/jquery.zuul.js +++ b/etc/status/public_html/jquery.zuul.js @@ -625,7 +625,7 @@ setTimeout(function() {app.schedule(app);}, 5000); return; } - app.update().complete(function () { + app.update().always(function () { setTimeout(function() {app.schedule(app);}, 5000); }); @@ -695,7 +695,7 @@ .removeClass('zuul-msg-wrap-off') .show(); }) - .complete(function () { + .always(function () { xhr = undefined; app.emit('update-end'); });