Closed (fixed)
Project:
Image javascript crop
Version:
7.x-1.x-dev
Component:
Javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Aug 2012 at 22:22 UTC
Updated:
12 Nov 2012 at 08:50 UTC
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
Comment #1
nils.destoop commentedThis should now be fixed. You had probably something on your pages that caused a second attach.