Index: trunk/admin/editor/cmseditor/editor/filemanager/browser/default/frmresourceslist.html
===================================================================
diff -u -r4963 -r4964
--- trunk/admin/editor/cmseditor/editor/filemanager/browser/default/frmresourceslist.html (.../frmresourceslist.html) (revision 4963)
+++ trunk/admin/editor/cmseditor/editor/filemanager/browser/default/frmresourceslist.html (.../frmresourceslist.html) (revision 4964)
@@ -54,18 +54,14 @@
{
// Create the new row.
var oRow = this.Table.insertRow(-1) ;
-
// Build the link to view the folder.
var sLink = '' ;
-
var oCell = oRow.insertCell(-1);
oCell.width = 16;
-
// Add the folder icon cell.
var oCell = oRow.insertCell(-1) ;
oCell.width = 16 ;
oCell.innerHTML = sLink + '
' ;
-
// Add the folder name cell.
oCell = oRow.insertCell(-1) ;
oCell.noWrap = true ;
@@ -77,43 +73,35 @@
{
// Create the new row.
var oRow = this.Table.insertRow(-1) ;
-
// Build the link to view the folder.
-
var sLink = '' ;
-
// Get the file icon.
var sIcon = oIcons.GetIcon( fileName ) ;
-
// Add the checkbox cell
var oCell = oRow.insertCell(-1);
oCell.width = 25;
oCell.innerHTML = '';
-
// Add the file icon cell.
var oCell = oRow.insertCell(-1) ;
oCell.width = 16 ;
oCell.innerHTML = sLink + '
' ;
-
// Add the file name cell.
oCell = oRow.insertCell(-1) ;
oCell.innerHTML = ' ' + sLink + fileName + '' ;
-
// Add the file size cell.
oCell = oRow.insertCell(-1) ;
oCell.width = 50;
oCell.noWrap = true ;
oCell.align = 'right' ;
oCell.innerHTML = ' ' + fileSize + ' KB' ;
-
//Add the file date cell.
oCell = oRow.insertCell(-1) ;
oCell.width = 120;
oCell.noWrap = true ;
oCell.align = 'center' ;
oCell.innerHTML = fileDate ;
-
}
+
oListManager.AddEmptyRow = function()
{
var oRow = this.Table.insertRow(-1) ;
@@ -311,18 +299,18 @@
{
table_height = document.getElementById('tableFiles').clientHeight;
if(is_msie())
- window_height = document.body.outerHeight;
+ window_height = document.body.clientHeight - 20;
else
window_height = window.outerHeight - 165;
- document.getElementById('data_div').style.height = window_height;
- //alert(document.getElementById('tableFiles').clientWidth);
-
- if (window_height < table_height) {
- document.getElementById('data_div').scroll = 'yes';
- document.getElementById('sortFiles').style.width = document.getElementById('tableFiles').clientWidth;
- } else {
- document.getElementById('data_div').scroll = 'yes';
- document.getElementById('sortFiles').style.width = document.getElementById('tableFiles').clientWidth;
+ if (document.getElementById('data_div')) {
+ document.getElementById('data_div').style.height = window_height;
+ if (window_height < table_height) {
+ document.getElementById('data_div').scroll = 'yes';
+ document.getElementById('sortFiles').style.width = document.getElementById('tableFiles').clientWidth;
+ } else {
+ document.getElementById('data_div').scroll = 'yes';
+ document.getElementById('sortFiles').style.width = document.getElementById('tableFiles').clientWidth;
+ }
}
}