Closed (fixed)
Project:
Image Editor
Version:
7.x-1.8
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
17 Apr 2012 at 16:56 UTC
Updated:
2 May 2012 at 19:00 UTC
Jump to comment: Most recent
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.
| Comment | File | Size | Author |
|---|---|---|---|
| imageeditor.patch | 1.75 KB | scottfbutton |
Comments
Comment #1
duozerskScott,
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
Comment #2
duozerskScott,
Just committed - http://drupalcode.org/project/imageeditor.git/commit/aaa32a0
Thanks again for the patch and welcome to the Image Editor committers list!
AndyB
Comment #3
scottfbutton commentedNo problem.
Glad I could help!