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.
Fo a project that I'm working on, I need a prescroll callback. That is, I need the jcarousel to allow me to call a function right before it scrolls.
Comment | File | Size | Author |
---|---|---|---|
#2 | jcarousel-pre_scroll_callback-2316507-2.patch | 768 bytes | mrmikedewolf |
#1 | jcarousel-pre_scroll_callback-2316507-1.patch | 30.52 KB | mrmikedewolf |
Comments
Comment #1
mrmikedewolf CreditAttribution: mrmikedewolf commentedhere is a patch that adds this.
Comment #2
mrmikedewolf CreditAttribution: mrmikedewolf commentedNew patch that doesn't touch the minified js. Patches to minified js can't be patched in the future because it is all on one line. Seems the only solution is to minify the js yourself and not track it in version control.
Comment #3
mrmikedewolf CreditAttribution: mrmikedewolf commentedIf any one knows of a more elegant workaround to the minification issue, I would love to hear it. There's always something to learn.
Until then here is an option to minify once applying the patch.
jscompress.com/