Siropu Well-known member Jun 19, 2024 #1 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?
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?
Jeremy P XenForo developer Staff member Jun 30, 2024 #2 You should be able to use: JavaScript: XF.on(document, 'ajax:complete', ({ data }) => { // ... })
XF Bug Bot XenForo bug fixer bot Staff member Jul 27, 2024 #4 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` Click to expand... There may be a delay before changes are rolled out to the XenForo Community.
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` Click to expand... There may be a delay before changes are rolled out to the XenForo Community.