From c16ab8d173faa8eb669339e11945661414719f48 Mon Sep 17 00:00:00 2001 From: Brock Whittaker Date: Wed, 24 Aug 2016 13:11:37 -0700 Subject: [PATCH] Set ajaxError to document, not body. Body is deprecated and it should be bound to document instead. --- static/js/setup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/setup.js b/static/js/setup.js index efd77efa3a..6237ec1735 100644 --- a/static/js/setup.js +++ b/static/js/setup.js @@ -23,7 +23,7 @@ $(function () { }); // For some reason, jQuery wants this to be attached to an element. - $('body').ajaxError(function (event, xhr) { + $(document).ajaxError(function (event, xhr) { if (xhr.status === 401) { // We got logged out somehow, perhaps from another window or a session timeout. // We could display an error message, but jumping right to the login page seems