Set ajaxError to document, not body.

Body is deprecated and it should be bound to document instead.
This commit is contained in:
Brock Whittaker
2016-08-24 13:11:37 -07:00
committed by Tim Abbott
parent 0ea770fc18
commit c16ab8d173

View File

@@ -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