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 default animation for modal is show(). Without animationSpeed setting show() would display the modal immediately. However modal doesn't allow animationSpeed to be empty. If animationSpeed is empty it is set to fast(). This is probably because empty values would cause errors but it also has the side effect of preventing 0 as speed which could be used to skip animations.
Comment | File | Size | Author |
---|---|---|---|
#1 | ctools_allow_0_animspeed-2001360-1.patch | 228 bytes | kimwes |
Comments
Comment #1
kimwes CreditAttribution: kimwes commentedHere's a patch that preserves the current behaviour of setting fast to animSpeed when it's empty but it also allows 0 to be set.
Comment #3
Chris Matthews CreditAttribution: Chris Matthews as a volunteer commentedThe 6 year old patch to modal.js applied cleanly to the latest ctools 7.x-1.x-dev, but still needs to be officially reviewed and tested by the community.
Comment #4
joelpittetVery reasonable request, sorry for the delay. I've committed this to the latest -dev release. Thanks @kimwes