Needs review
Project:
Imce CCK Image
Version:
6.x-2.0-alpha2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Feb 2012 at 09:37 UTC
Updated:
29 Feb 2012 at 16:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
donquixote commentedI don't have much time for this atm, but if you provide a patch or find out why this happens, I may help out.
Comment #2
k.dani commentedI found a solution on the following page: http://drupal.org/node/647772
I created a patch based on this article. Please review it.
Comment #3
donquixote commentedSo it seems that the "file" variable is no longer the same in the closure function?
Can you check (console.log) on the values in the "ret" variable? If this also has width and height, maybe this is more reliable?
Otherwise, looks reasonable.
Comment #4
k.dani commentedYes, you are right, the ret variable has height and width, so I made that changes in the patch. Also get another error that the imceInline is not defined, so I added this condition in the following row:
if (imceInline && imceInline.pop && !imceInline.pop.closed) imceInline.pop.close();The new verison of the patch is attached.