Skip to content
Snippets Groups Projects
Commit 0cbfb28a authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX using media files in dolfilemanager with spaces inside.

parent e08ac036
Branches
Tags
No related merge requests found
......@@ -84,6 +84,7 @@ oListManager.GetFolderRowHtml = function( folderName, folderPath )
'<\/td><\/tr>' ;
}
// Note: fileUrl must be already "URL encoded"
oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )
{
// Build the link to view the folder.
......@@ -123,10 +124,12 @@ function GetUrlParam( paramName )
return '' ;
}
// Note fileUrl must be already "URL encoded"
function OpenFile( fileUrl )
{
funcNum = GetUrlParam('CKEditorFuncNum');
window.top.opener.CKEDITOR.tools.callFunction(funcNum, encodeURI( fileUrl ).replace( '#', '%23' ));
//window.top.opener.CKEDITOR.tools.callFunction(funcNum, encodeURI( fileUrl ).replace( '#', '%23' ));
window.top.opener.CKEDITOR.tools.callFunction(funcNum, fileUrl.replace( '#', '%23' ));
///////////////////////////////////
window.top.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment