I'm working on a project using the inline image editor on image fields, however in node edit forms there is also a javascript event listener bound to a parent of the image thumbnails to open a media browser as a modal. When clicking on the editor button, the click event bubbles up and both the image editor and the media browser modals open at once.

I have a patch that explicitly stops propagation of click events on these buttons to prevent this kind of behavior.

CommentFileSizeAuthor
imageeditor.patch1.75 KBscottfbutton

Comments

duozersk’s picture

Assigned: Unassigned » duozersk
Category: support » task

Scott,

This is just great! I have bumped myself into wall not knowing how to solve this - it also has implications for Media Gallery when you set the images to open in a lightbox and so both the lightbox and the editor are being opened.

I will commit your patch right now!

Thanks!
AndyB

duozersk’s picture

Category: task » bug
Status: Active » Fixed

Scott,

Just committed - http://drupalcode.org/project/imageeditor.git/commit/aaa32a0

Thanks again for the patch and welcome to the Image Editor committers list!

AndyB

scottfbutton’s picture

No problem.
Glad I could help!

Status: Fixed » Closed (fixed)

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