www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4b1545d38a81a26bd2501615d7460d4bbd9161b9
parent 85458659d08914f359bd37550f0a272b47a85c45
Author: David Norton <david@nortoncrew.com>
Date:   Tue, 16 May 2006 20:36:20 +0000

You can view object metadata again.

Diffstat:
Mchrome/chromeFiles/content/scholar/sidebar.js | 29+++++++++++------------------
Mchrome/chromeFiles/content/scholar/sidebar.xul | 8++------
2 files changed, 13 insertions(+), 24 deletions(-)

diff --git a/chrome/chromeFiles/content/scholar/sidebar.js b/chrome/chromeFiles/content/scholar/sidebar.js @@ -101,24 +101,15 @@ Scholar.TreeView.prototype.toggleOpenState = function(row) Scholar.TreeView.prototype.selectionChanged = function() { -/* - if(this.selection.count == 0) - { - document.getElementById('status-text').value = "(No selection)"; - setObjectPaneVisibility(false); - } - else if(this.selection.count == 1) + if(this.selection.count == 1 && !this.isContainer(this.selection.currentIndex)) { populateObjectPane(this._getObjectAtRow(this.selection.currentIndex)); setObjectPaneVisibility(true); } else { - document.getElementById('status-text').value = "(Multiple selection)"; setObjectPaneVisibility(false); } -*/ - } /* @@ -133,14 +124,17 @@ Scholar.TreeView.prototype._deleteRow = function(row) } */ -Scholar.TreeView.prototype._getObjectAtRow = function(row) -{ - return this._dataObjects[row][0]; -} +Scholar.TreeView.prototype._getObjectAtRow = function(row) { return this._dataObjects[row][0]; } + +/* +DRAG AND DROP (IMPLEMENT LATER) +Scholar.TreeView.prototype.canDrop = function(row, orient) { return !orient; } +Scholar.TreeView.prototype.drop = function(row, orient) { } +*/ -Scholar.TreeView.prototype.isSorted = function() { return false; } -Scholar.TreeView.prototype.isSeparator = function(row) { return false; } -Scholar.TreeView.prototype.isEditable = function(row, idx) { return false; } +Scholar.TreeView.prototype.isSorted = function() { return false; } +Scholar.TreeView.prototype.isSeparator = function(row) { return false; } +Scholar.TreeView.prototype.isEditable = function(row, idx) { return false; } Scholar.TreeView.prototype.getRowProperties = function(row, prop) { } Scholar.TreeView.prototype.getColumnProperties = function(col, prop) { } @@ -153,7 +147,6 @@ Scholar.TreeView.prototype.getProgressMode = function(row, col) { } function setObjectPaneVisibility(vis) { document.getElementById('scholar-sidebar-object-pane').hidden = !vis; - document.getElementById('status-text').hidden = vis; } function populateObjectPane(objectRow) diff --git a/chrome/chromeFiles/content/scholar/sidebar.xul b/chrome/chromeFiles/content/scholar/sidebar.xul @@ -24,7 +24,7 @@ <treecol id="title_column" label="&sidebar.items.title_column;" - flex="1" + flex="2" primary="true"/> <splitter class="tree-splitter"/> <treecol @@ -33,11 +33,7 @@ flex="1"/> </treecols> <treechildren/> - </tree> - - - <label id="status-text" value="(No selection)"/> - + </tree> <grid id="scholar-sidebar-object-pane" hidden="true"> <columns>