You can view object metadata again.

This commit is contained in:
David Norton 2006-05-16 20:36:20 +00:00
parent 85458659d0
commit 4b1545d38a
2 changed files with 13 additions and 24 deletions

View file

@ -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,10 +124,13 @@ 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; }
@ -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)

View file

@ -24,7 +24,7 @@
<treecol
id="title_column"
label="&sidebar.items.title_column;"
flex="1"
flex="2"
primary="true"/>
<splitter class="tree-splitter"/>
<treecol
@ -35,10 +35,6 @@
<treechildren/>
</tree>
<label id="status-text" value="(No selection)"/>
<grid id="scholar-sidebar-object-pane" hidden="true">
<columns>
<column/>