﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
349	"[FCKeditor Site] About ""OpenFileBrowse"" Function's bug in Maxthon browser"	wang.seraph		"Hello,

I'm a developer from China,and it's very thankful that you give us so perfect editor.But in my development with it i found some functions may not work as what we want. When i use the editor(2.4.1) in Maxthon (2.0) Browser,i open the image dialog  and click the ""Browse Server"" Button,then the new window opened as a new tab in the browser while the image dialog still show on the top of the browser,which i have to close it if i want to choose some files in the opened browse server window.

Here is the way i change the function to solve this bug,hoping to give some suggestion to you:

/editor/dialog/common/fck_dialog_common.js
{{{
function OpenFileBrowser (...)
{
..
//at the bottom of the function
 if(oEditor.FCKBrowserInfo.IsIE)
        {
            window.showModalDialog(url+""&rdm=""+new
Date(),window,""status:false;dialogWidth:""+width+""px;dialogHeig
ht:""+height+""px\"""");
        }
        else
        {
            window.open( url, 'FCKBrowseWindow', sOptions ) ;
        }
}
}}}

Of course we should change the place where works with this 
function,such as:

editor/filemanager/browser/default/frmresourceslist.html
{{{ 
function OpenFile( fileUrl )
{
    if( window.dialogArguments)
    {
        window.dialogArguments.SetUrl( fileUrl ) ;
        window.close() ;
	    window.dialogArguments.focus() ;
	}
	else
	{	
	    window.top.opener.SetUrl( fileUrl ) ;
	    window.top.close() ;
	    window.top.opener.focus() ;	
	}
}
}}}

Also,we need to modify the function which receives the folder name when we Create New Folder for the method ""prompt"" doesn't work in  dialog mode.

As this,our editor now work normal in browser no matter it bases on IE or FireFox."	Bug	closed	Normal	FCKeditor 2.6	General		fixed		
