FIX using media files in dolfilemanager with spaces inside.
This commit is contained in:
parent
e08ac03618
commit
0cbfb28a0f
@ -71,7 +71,7 @@ function ProtectPath(path)
|
|||||||
oListManager.GetFolderRowHtml = function( folderName, folderPath )
|
oListManager.GetFolderRowHtml = function( folderName, folderPath )
|
||||||
{
|
{
|
||||||
// Build the link to view the folder.
|
// Build the link to view the folder.
|
||||||
var sLink = '<a href="#" onclick="OpenFolder(\'' + ProtectPath(folderPath ) + '\');return false;">' ;
|
var sLink = '<a href="#" onclick="OpenFolder(\'' + ProtectPath(folderPath) + '\');return false;">' ;
|
||||||
|
|
||||||
return '<tr>' +
|
return '<tr>' +
|
||||||
'<td width="16">' +
|
'<td width="16">' +
|
||||||
@ -84,10 +84,11 @@ oListManager.GetFolderRowHtml = function( folderName, folderPath )
|
|||||||
'<\/td><\/tr>' ;
|
'<\/td><\/tr>' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note: fileUrl must be already "URL encoded"
|
||||||
oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )
|
oListManager.GetFileRowHtml = function( fileName, fileUrl, fileSize )
|
||||||
{
|
{
|
||||||
// Build the link to view the folder.
|
// Build the link to view the folder.
|
||||||
var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath(fileUrl ) + '\');return false;">' ;
|
var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath(fileUrl) + '\');return false;">' ;
|
||||||
|
|
||||||
// Get the file icon.
|
// Get the file icon.
|
||||||
var sIcon = oIcons.GetIcon( fileName );
|
var sIcon = oIcons.GetIcon( fileName );
|
||||||
@ -123,10 +124,12 @@ function GetUrlParam( paramName )
|
|||||||
return '' ;
|
return '' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Note fileUrl must be already "URL encoded"
|
||||||
function OpenFile( fileUrl )
|
function OpenFile( fileUrl )
|
||||||
{
|
{
|
||||||
funcNum = GetUrlParam('CKEditorFuncNum');
|
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();
|
window.top.close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user