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.
In my usecase I need to perform some javascript actions prior to opening colorbox. According to documentation there is onLoad property for that. But because triggering colorbox is done in the module I would like to propose to add a hook (custom event on document object) that we can then hook into.
See attached patch.
Comment | File | Size | Author |
---|---|---|---|
#1 | colorbox-2267967-add-js-hook-onLoad.patch | 456 bytes | ygerasimov |
Comments
Comment #1
ygerasimov CreditAttribution: ygerasimov commentedComment #2
frjo CreditAttribution: frjo commented