From b50afbef24970935a4f122f0984b01147441dcf3 Mon Sep 17 00:00:00 2001 From: David Norton Date: Tue, 21 Mar 2006 14:27:19 +0000 Subject: [PATCH] Fixed the object pane. --- chrome/chromeFiles/content/scholar/sidebar.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/sidebar.js b/chrome/chromeFiles/content/scholar/sidebar.js index 4f05bda8b3..3d65280390 100644 --- a/chrome/chromeFiles/content/scholar/sidebar.js +++ b/chrome/chromeFiles/content/scholar/sidebar.js @@ -36,19 +36,18 @@ var treeView = { selectionChanged: function(){ if(this.selection.count == 0) { - setObjectPaneVisibility(false); document.getElementById('status-text').value = "(No selection)"; + setObjectPaneVisibility(false); } else if(this.selection.count == 1) { - document.getElementById('status-text').value = "Selected: " + this.selection.currentIndex; - setObjectPaneVisibility(true); populateObjectPane(this.dataObjects[this.selection.currentIndex]); + setObjectPaneVisibility(true); } else { - setObjectPaneVisibility(false); document.getElementById('status-text').value = "(Multiple selection)"; + setObjectPaneVisibility(false); } } }; @@ -65,11 +64,11 @@ function populateObjectPane(objectRow) while(dynamicBox.hasChildNodes()) dynamicBox.removeChild(dynamicBox.firstChild); - var fields = Scholar_ObjectFields.getObjectTypeFields(objectRow.getField("objectTypeID")); + var fields = Scholar.ObjectFields.getObjectTypeFields(objectRow.getField("objectTypeID")); var fieldNames = new Array("title","dateAdded","dateModified","source","rights"); for(var i = 0; i