Closed (fixed)
Project:
Image Picker
Version:
5.x-2.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2010 at 20:48 UTC
Updated:
1 May 2010 at 21:44 UTC
For some strange reason my imagepicker stopped working, i was no longer able to use image insert button to insert images. I read the source code and after some testing i found the problem.
The code win = top; does not work properly, it points to the parent document but it has no reference to its elements! i replaced it with win=window.parent; and it fixed.
Where this top variable declared i couldn't find anywhere? is it javascript global variable ?
I attached the patch (tested in IE8 and Firefox 3.6)
| Comment | File | Size | Author |
|---|---|---|---|
| imageinsert_not_words.patch | 1.8 KB | sinasalek |
Comments
Comment #1
hutch commentedThank you for the patch, I have tested it in 5.x and 6.x and it works or at least does not interfere with the existing method.
I'm not sure what exactly 'top ' is, presumably it is a global variable. All I know is that it works for me.
I will add the window.parent method to dev versions shortly
Comment #2
hutch commented