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.
Problem/Motivation
The initialization script relies on jQuery. There is no need for it.
The initialization script fails to initialize multiple sliders
Proposed resolution
- Change the initialization script and remove jQuery dependency to be in line with Drupal's deprecation of jQuery
- Remove dependency on jQuery.once and use core/once
- Fix the initialization of multiple sliders
Comment | File | Size | Author |
---|---|---|---|
#4 | 3313870-remove-jquery-dependency.patch | 1.23 KB | bohemier |
Comments
Comment #2
bohemier CreditAttribution: bohemier commentedComment #3
bohemier CreditAttribution: bohemier commentedComment #4
bohemier CreditAttribution: bohemier as a volunteer commentedAttaching patch
Comment #5
ipwa CreditAttribution: ipwa at manifesto commentedPatch works well thank you so much @bohemier.
This fixes the issue when adding multiple sliders with view for example.
We still have the issue when using multiple fields with the field formatter. Will open a new ticket for this, its not really related to what this patch and issue is addressing.
Comment #7
ipwa CreditAttribution: ipwa at manifesto commentedCommitted, thanks for your contribution :D
Comment #8
ipwa CreditAttribution: ipwa at manifesto commented