ajaxCompleteHandler never gets called

Created on 4 February 2024, 10 months ago
Updated 19 February 2024, 9 months ago

Problem/Motivation

When an ajax request is made, the ajaxCompleteHandler isn't properly bound to the ajaxComplete event. .ajaxComplete() is deprecated in jQuery 3.3. In addition, as of jQuery 1.9, ajaxComplete must be attached to the document or else it won't be triggered.

As of jQuery 1.9, all the handlers for the jQuery global Ajax events, including those added with .on( "ajaxComplete", ... ), must be attached to document.

Steps to reproduce

Set a breakpoint inside ajaxCompleteHandler via a web inspector. Trigger an autosave. The breakpoint should be triggered but is not.

Proposed resolution

Bind ajaxComplete to the document via .on('ajaxComplete', ...)

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pixelwhip

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024