mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Set ajaxError to document, not body.
Body is deprecated and it should be bound to document instead.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							0ea770fc18
						
					
				
				
					commit
					c16ab8d173
				
			@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user