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() Scholar.TreeView.prototype.selectionChanged = function()
{ {
/* if(this.selection.count == 1 && !this.isContainer(this.selection.currentIndex))
if(this.selection.count == 0)
{
document.getElementById('status-text').value = "(No selection)";
setObjectPaneVisibility(false);
}
else if(this.selection.count == 1)
{ {
populateObjectPane(this._getObjectAtRow(this.selection.currentIndex)); populateObjectPane(this._getObjectAtRow(this.selection.currentIndex));
setObjectPaneVisibility(true); setObjectPaneVisibility(true);
} }
else else
{ {
document.getElementById('status-text').value = "(Multiple selection)";
setObjectPaneVisibility(false); setObjectPaneVisibility(false);
} }
*/
} }
/* /*
@ -133,14 +124,17 @@ Scholar.TreeView.prototype._deleteRow = function(row)
} }
*/ */
Scholar.TreeView.prototype._getObjectAtRow = function(row) Scholar.TreeView.prototype._getObjectAtRow = function(row) { return this._dataObjects[row][0]; }
{
return this._dataObjects[row][0];
}
Scholar.TreeView.prototype.isSorted = function() { return false; } /*
Scholar.TreeView.prototype.isSeparator = function(row) { return false; } DRAG AND DROP (IMPLEMENT LATER)
Scholar.TreeView.prototype.isEditable = function(row, idx) { return false; } 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.getRowProperties = function(row, prop) { } Scholar.TreeView.prototype.getRowProperties = function(row, prop) { }
Scholar.TreeView.prototype.getColumnProperties = function(col, prop) { } Scholar.TreeView.prototype.getColumnProperties = function(col, prop) { }
@ -153,7 +147,6 @@ Scholar.TreeView.prototype.getProgressMode = function(row, col) { }
function setObjectPaneVisibility(vis) function setObjectPaneVisibility(vis)
{ {
document.getElementById('scholar-sidebar-object-pane').hidden = !vis; document.getElementById('scholar-sidebar-object-pane').hidden = !vis;
document.getElementById('status-text').hidden = vis;
} }
function populateObjectPane(objectRow) function populateObjectPane(objectRow)

View file

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