commit 85458659d08914f359bd37550f0a272b47a85c45
parent c51f612098b68640e685042807737166b7df7eb7
Author: David Norton <david@nortoncrew.com>
Date: Tue, 16 May 2006 19:38:42 +0000
sidebar tree uses Dan's forthcoming isEmpty() function
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/chromeFiles/content/scholar/sidebar.js b/chrome/chromeFiles/content/scholar/sidebar.js
@@ -43,7 +43,7 @@ Scholar.TreeView.prototype.getCellText = function(row, column)
Scholar.TreeView.prototype.isContainer = function(row) { return this._getObjectAtRow(row).isFolder(); }
Scholar.TreeView.prototype.isContainerOpen = function(row) { return this._dataObjects[row][1]; }
-Scholar.TreeView.prototype.isContainerEmpty = function(row) { return false; }
+Scholar.TreeView.prototype.isContainerEmpty = function(row) { return (this.isContainer(row) && this._getObjectAtRow(row).isEmpty()); }
Scholar.TreeView.prototype.getLevel = function(row) { return this._dataObjects[row][2]; }
Scholar.TreeView.prototype.getParentIndex = function(row)