Hey folks.

We're trying to add imagecrop here, and I ran into an odd bug. For whatever reason, the Drupal.behaviors.imagecropDialog is getting invoked multiple times, and because of that the click handler is being bound to the a.imagecrop-button link, resulting in mulitple windows opening up when I click on the 'Crop Image' link.

I've got it fixed on my own end by adding .once('imagecrop') to the $(context).find('a.imagecrop-button').bind('click', Drupal.Imagecrop.openDialog);. Anyone else running into this problem?

Comments

nils.destoop’s picture

Status: Active » Fixed

This should now be fixed. You had probably something on your pages that caused a second attach.

Status: Fixed » Closed (fixed)

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