If images are in a tab, such as via quicktabs loaded with ajax, the JavaScript never attaches to the new images added to the DOM. This is fixed if you use Drupal.behaviors.

CommentFileSizeAuthor
jail_behaviors.patch528 bytescatch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

catch’s picture

Status: Needs review » Needs work

I've pushed this, but Drupal.behaviors needs to take the context param, so this fix wasn't quite right.

svajlenka’s picture

Status: Needs work » Fixed

Fixed per #1484634 addition of context param.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.