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.
Hi,
I found a discrepancy that conflicts with node_gallery and really any other href that just so happens to end in jpg, png, etc (anything listed in line 9 of shadowbox_auto.js).
Because the conditional statement is looking for "jpg" instead of ".jpg", if you happen to have a link that ends in that string, then shadowbox wants to pop it up in a new window.
By including the period and changing the statement to ".jpg", .png, etc... the auto-enable feature won't trigger on node pages and instead only triggers on actual image files.
Thanks ~ pj
Comments
Comment #1
manfer CreditAttribution: manfer commentedThanks for the report