Project

General

Profile

« Previous | Next » 

Revision 1289

Added by kweitzel over 14 years ago

Branch 2.8.1 merged back into Trunk

View differences:

frmresourceslist.html
29 29
	<script type="text/javascript" src="js/common.js"></script>
30 30
	<script type="text/javascript">
31 31

  
32

  
33

  
34

  
32 35
var oListManager = new Object() ;
33 36

  
34 37
oListManager.Clear = function()
......
63 66
{
64 67
	// Build the link to view the folder.
65 68
	var sLink = '<a href="#" onclick="OpenFile(\'' + ProtectPath( fileUrl ) + '\');return false;">' ;
69
	var relLink = '<a href="'+fileUrl+'" rel="lightbox">' ;
66 70

  
67 71
	// Get the file icon.
68 72
	var sIcon = oIcons.GetIcon( fileName ) ;
69 73

  
70 74
	return '<tr>' +
71
			'<td width="16">' +
75
			'<td class="icon">' +
72 76
				sLink +
73 77
				'<img alt="" src="images/icons/' + sIcon + '.gif" width="16" height="16" border="0"><\/a>' +
74
			'<\/td><td>&nbsp;' +
78
			'<\/td>'+
79
			'<td class="thumbnail">' +
75 80
				sLink +
81
				'<img alt="" src="' + fileUrl + '" width="100"><\/a>' +
82
			'<\/td>' +
83
            '<td class="filename">' +
84
				sLink +
76 85
				fileName +
77 86
				'<\/a>' +
78
			'<\/td><td align="right" nowrap>&nbsp;' +
87
			'<\/td>'+
88
            '<td align="right" nowrap>&nbsp;' +
79 89
				fileSize +
80 90
				' KB' +
81 91
		'<\/td><\/tr>' ;
......
89 99

  
90 100
function OpenFile( fileUrl )
91 101
{
92
	window.top.opener.SetUrl( encodeURI( fileUrl ).replace( '#', '%23' ) ) ;
102
	window.top.opener.SetUrl( fileUrl ) ;
93 103
	window.top.close() ;
94 104
	window.top.opener.focus() ;
95 105
}
......
145 155

  
146 156
		// Get the optional "url" attribute. If not available, build the url.
147 157
		var oFileUrlAtt = oNodes[j].attributes.getNamedItem('url') ;
148
		var sFileUrl = oFileUrlAtt != null ? oFileUrlAtt.value : sCurrentFolderUrl + sFileName ;
158
		var sFileUrl = oFileUrlAtt != null ? oFileUrlAtt.value : encodeURI( sCurrentFolderUrl + sFileName ).replace( /#/g, '%23' ) ;
149 159

  
150 160
		// hide index.php in browse media - added for Website Baker
151 161
		if (sFileName != "index.php") 
......
166 176
{
167 177
	window.top.IsLoadedResourcesList = true ;
168 178
}
179

  
169 180
	</script>
170 181
</head>
171 182
<body class="FileArea">

Also available in: Unified diff