diff --git a/chrome/chromeFiles/content/scholar/folderTreeView.js b/chrome/chromeFiles/content/scholar/folderTreeView.js index 2d21928465..ff534f2146 100644 --- a/chrome/chromeFiles/content/scholar/folderTreeView.js +++ b/chrome/chromeFiles/content/scholar/folderTreeView.js @@ -12,9 +12,9 @@ Scholar.FolderTreeView.prototype.setTree = function(treebox) return; this._treebox = treebox; - var newRows = Scholar.Items.getTreeRows(0,'folders'); + var newRows = Scholar.getCollections(); for(var i = 0; i < newRows.length; i++) - this._showItem(new Scholar.ItemGroup('folder',newRows[i]), 0, this._dataItems.length); //item ref, level, beforeRow + this._showItem(new Scholar.ItemGroup('collection',newRows[i]), 0, this._dataItems.length); //item ref, level, beforeRow this._refreshHashMap(); } @@ -29,13 +29,13 @@ Scholar.FolderTreeView.prototype.getCellText = function(row, column) return ""; } -Scholar.FolderTreeView.prototype.isContainer = function(row) { return this._getItemAtRow(row).isFolder(); } +Scholar.FolderTreeView.prototype.isContainer = function(row) { return this._getItemAtRow(row).isCollection(); } Scholar.FolderTreeView.prototype.isContainerOpen = function(row) { return this._dataItems[row][1]; } Scholar.FolderTreeView.prototype.isContainerEmpty = function(row) { var itemGroup = this._getItemAtRow(row); - if(itemGroup.isFolder()) - return !itemGroup.ref.hasChildFolders(); + if(itemGroup.isCollection()) + return !itemGroup.ref.hasChildCollections(); else return true; } @@ -79,12 +79,12 @@ Scholar.FolderTreeView.prototype.toggleOpenState = function(row) } else { - var newRows = Scholar.Items.getTreeRows(this._getItemAtRow(row).ref.getID(),'folders'); //Get children + var newRows = Scholar.getCollections(this._getItemAtRow(row).ref.getID()); //Get children for(var i = 0; i < newRows.length; i++) { count++; - this._showItem(new Scholar.ItemGroup('folder',newRows[i]), thisLevel+1, row+i+1); //insert new row + this._showItem(new Scholar.ItemGroup('collection',newRows[i]), thisLevel+1, row+i+1); //insert new row } } this._dataItems[row][1] = !this._dataItems[row][1]; //toggle container open value @@ -117,12 +117,12 @@ Scholar.FolderTreeView.prototype.deleteSelection = function() if(this.selection.count == 0) return; - //collapse open folders + //collapse open collections for(var i=0; i - - - - - @@ -23,4 +18,9 @@ + + + + + \ No newline at end of file diff --git a/chrome/chromeFiles/locale/en-US/scholar/scholar.dtd b/chrome/chromeFiles/locale/en-US/scholar/scholar.dtd index b548d47db3..dd1d7762ad 100644 --- a/chrome/chromeFiles/locale/en-US/scholar/scholar.dtd +++ b/chrome/chromeFiles/locale/en-US/scholar/scholar.dtd @@ -5,7 +5,7 @@ - + @@ -18,7 +18,7 @@ - + diff --git a/chrome/chromeFiles/skin/default/scholar/overlay.css b/chrome/chromeFiles/skin/default/scholar/overlay.css index d4569f5edd..7b0f3aaff8 100644 --- a/chrome/chromeFiles/skin/default/scholar/overlay.css +++ b/chrome/chromeFiles/skin/default/scholar/overlay.css @@ -13,6 +13,7 @@ tree #folders-tree #scholar-tree-splitter { + background: #f5f5f5; } @@ -24,6 +25,7 @@ tree #items-tree #scholar-toolbar { border-bottom: none; + background: #f5f5f5; } #scholar-toolbar toolbarbutton