- Timestamp:
- 2007-07-07 12:19:05 (18 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/filemanager/browser/default/frmresourceslist.html
r357 r413 35 35 } 36 36 37 function ProtectPath(path) 38 { 39 path = path.replace( /\\/g, '\\\\') ; 40 path = path.replace( /'/g, '\\\'') ; 41 return path ; 42 } 43 37 44 oListManager.GetFolderRowHtml = function( folderName, folderPath ) 38 45 { 39 46 // 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;">' ; 41 48 42 49 return '<tr>' + 43 50 '<td width="16">' + 44 51 sLink + 45 '<img alt="" src="images/Folder.gif" width="16" height="16" border="0">< /a>' +46 '< /td><td nowrap colspan="2"> ' +52 '<img alt="" src="images/Folder.gif" width="16" height="16" border="0"><\/a>' + 53 '<\/td><td nowrap colspan="2"> ' + 47 54 sLink + 48 55 folderName + 49 '< /a>' +50 '< /td></tr>' ;56 '<\/a>' + 57 '<\/td><\/tr>' ; 51 58 } 52 59 … … 54 61 { 55 62 // 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;">' ; 57 64 58 65 // Get the file icon. … … 62 69 '<td width="16">' + 63 70 sLink + 64 '<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0">< /a>' +65 '< /td><td> ' +71 '<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"><\/a>' + 72 '<\/td><td> ' + 66 73 sLink + 67 74 fileName + 68 '< /a>' +69 '< /td><td align="right" nowrap> ' +75 '<\/a>' + 76 '<\/td><td align="right" nowrap> ' + 70 77 fileSize + 71 78 ' KB' + 72 '< /td></tr>' ;79 '<\/td><\/tr>' ; 73 80 } 74 81 … … 156 163 </script> 157 164 </head> 158 <body class="FileArea" bottommargin="10" leftmargin="10" topmargin="10" rightmargin="10">165 <body class="FileArea"> 159 166 </body> 160 167 </html>