Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The current implementation doesn't work with the Drupal AJAX framework as the inline JS is not appended to the head region. The patch in the comment below resolves this issue by storing all settings in the Drupal.settings hash and then invoking the bxslider using those settings in the attach behavior. This solves the issue of the callbacks not working on the views admin page as well (there was special logic previously to disable the callbacks on the view admin page).
Comment | File | Size | Author |
---|---|---|---|
#1 | Module_doesnt_work_with_AJAX_requests-2090391-0.patch | 6.63 KB | d.clarke |
Comments
Comment #1
d.clarke CreditAttribution: d.clarke commentedPatch to address reported issue.
Comment #2
Mschudders CreditAttribution: Mschudders commentedComment #3
Mschudders CreditAttribution: Mschudders commentedThanks committed to DEV.
Not closing because I need to test it :)
Comment #4
d.clarke CreditAttribution: d.clarke commentedHi Mschudders,
Thank you for the quick turn around on this. If you run into any issues feel free to reach out and I'll take a look.
Dale
Comment #5
Mschudders CreditAttribution: Mschudders commentedHi,
I've tested it and looked at the diff log, and I must say thank you very much.
I couldn't solve the problem with the callbacks passed to the JS that's why I created such a workaround but this is way nicer using jQ.extend !
Thanks
Mschudders.