Show
Ignore:
Timestamp:
2007-07-07 12:19:05 (18 months ago)
Author:
alfonsoml
Message:

Land on the trunk the unified connectors from #454.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/filemanager/browser/default/frmresourceslist.html

    r357 r413  
    3535} 
    3636 
     37function ProtectPath(path) 
     38{ 
     39        path = path.replace( /\\/g, '\\\\') ; 
     40        path = path.replace( /'/g, '\\\'') ; 
     41        return path ; 
     42} 
     43 
    3744oListManager.GetFolderRowHtml = function( folderName, folderPath ) 
    3845{ 
    3946        // Build the link to view the folder. 
    40         var sLink = '<a href="#" onclick="OpenFolder(\'' + folderPath.replace( /'/g, '\\\'') + '\');return false;">' ; 
     47        var sLink = '<a href="#" onclick="OpenFolder(\'' + ProtectPath( folderPath ) + '\');return false;">' ; 
    4148 
    4249        return '<tr>' + 
    4350                        '<td width="16">' + 
    4451                                sLink + 
    45                                 '<img alt="" src="images/Folder.gif" width="16" height="16" border="0"></a>' + 
    46                         '</td><td nowrap colspan="2">&nbsp;' + 
     52                                '<img alt="" src="images/Folder.gif" width="16" height="16" border="0"><\/a>' + 
     53                        '<\/td><td nowrap colspan="2">&nbsp;' + 
    4754                                sLink + 
    4855                                folderName + 
    49                                 '</a>' + 
    50                 '</td></tr>' ; 
     56                                '<\/a>' + 
     57                '<\/td><\/tr>' ; 
    5158} 
    5259 
     
    5461{ 
    5562        // Build the link to view the folder. 
    56         var sLink = '<a href="#" onclick="OpenFile(\'' + fileUrl.replace( /'/g, '\\\'') + '\');return false;">' ; 
     63        var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath( fileUrl ) + '\');return false;">' ; 
    5764 
    5865        // Get the file icon. 
     
    6269                        '<td width="16">' + 
    6370                                sLink + 
    64                                 '<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"></a>' + 
    65                         '</td><td>&nbsp;' + 
     71                                '<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"><\/a>' + 
     72                        '<\/td><td>&nbsp;' + 
    6673                                sLink + 
    6774                                fileName + 
    68                                 '</a>' + 
    69                         '</td><td align="right" nowrap>&nbsp;' + 
     75                                '<\/a>' + 
     76                        '<\/td><td align="right" nowrap>&nbsp;' + 
    7077                                fileSize + 
    7178                                ' KB' + 
    72                 '</td></tr>' ; 
     79                '<\/td><\/tr>' ; 
    7380} 
    7481 
     
    156163        </script> 
    157164</head> 
    158 <body class="FileArea" bottommargin="10" leftmargin="10" topmargin="10" rightmargin="10"> 
     165<body class="FileArea"> 
    159166</body> 
    160167</html>