[wp-trac] [WordPress Trac] #6864: Problem with insertion of images
in Firefox
WordPress Trac
wp-trac at lists.automattic.com
Mon Apr 28 16:43:37 GMT 2008
#6864: Problem with insertion of images in Firefox
---------------------+------------------------------------------------------
Reporter: Ralix | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.2
Component: General | Version: 2.5.1
Severity: normal | Keywords:
---------------------+------------------------------------------------------
After pressing the button to insert an image nothing happens. There was
only a white window which was never closed.
I've found out the following problem in file "'''/wp-admin/js/media-
upload.js'''":
{{{
// send html to the post editor
function send_to_editor(h) {
var win = window.opener ? window.opener : window.dialogArguments;
if ( !win )
win = top;
...
}}}
“'''win'''” points to “'''/index.php'''” - but I think it should point to
“'''/wp-admin/post-new.php'''”. So I've changed the code:
{{{
// send html to the post editor
function send_to_editor(h) {
/*
var win = window.opener ? window.opener : window.dialogArguments;
if ( !win )
win = top;
*/
var win = parent;
...
}}}
After this changes it works fine in Firefox! I don't know why it works
with the original code in Opera and not in Firefox. With the modified code
it works in both browsers!
--
Ticket URL: <http://trac.wordpress.org/ticket/6864>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list