From 85458659d08914f359bd37550f0a272b47a85c45 Mon Sep 17 00:00:00 2001 From: David Norton Date: Tue, 16 May 2006 19:38:42 +0000 Subject: [PATCH] sidebar tree uses Dan's forthcoming isEmpty() function --- chrome/chromeFiles/content/scholar/sidebar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/chromeFiles/content/scholar/sidebar.js b/chrome/chromeFiles/content/scholar/sidebar.js index 60c9d5df0f..5e94f38667 100644 --- 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)