Fixed ajax:complete not passing JSON params set from controller using setJsonParams

Siropu

Well-known member
Affected version
2.3
In 2.2 you can use:

JavaScript:
$(document).on('ajax:complete', function(e, xhr, status) {
    const data = xhr.responseJSON;
});

In 2.3 you cannot access any params using:

JavaScript:
XF.on(document, 'ajax:complete', e => {
    
});

Am I missing something?
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.3.1).

Change log:
Address several issues with `XF.ajax`
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom