When I want to use this module under IE8 and IE9, the image inserting function not work properly. The popup window is displayed correctly after click on select image link, but when the image is going to be inserted, nothing happened. This problem not occurs in Safari, Firefox or Chrome.

Enviroment:
nginx 1.0.10
PHP 5.2.17
Drupal 6.24

Comments

donquixote’s picture

I don't have much time for this atm, but if you provide a patch or find out why this happens, I may help out.

k.dani’s picture

Status: Active » Needs review
StatusFileSize
new889 bytes

I found a solution on the following page: http://drupal.org/node/647772
I created a patch based on this article. Please review it.

donquixote’s picture

So 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.

k.dani’s picture

StatusFileSize
new1.58 KB

Yes, 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.