XF / News ajax:complete not passing JSON params set from controller using setJsonParams

Status
Not open for further replies.

Bots

Registered
Joined
May 3, 2024
Messages
4,110
Reaction score
1
In 2.2 you can use:

JavaScript:

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

In 2.3 you cannot access any params using:

JavaScript:

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

Am I missing something?

Continue reading...
 
Status
Not open for further replies.
Top