From 785954f4f5217d529f4e05ead41fa6ebd763e30d Mon Sep 17 00:00:00 2001 From: David Norton Date: Mon, 17 Jul 2006 14:09:12 +0000 Subject: [PATCH] Fixes #116, Make full screen button text. Fixes #115, Windows should open with Scholar Pane closed. Fixes #105, search box loses focus after search starts. Retooled the interface a bit, and removed the top toolbar. The close and fullscreen buttons are located to the right of the items toolbar. The item pane cannot be collapsed. --- .../content/scholar/collectionTreeView.js | 2 + .../chromeFiles/content/scholar/itemPane.js | 6 +- .../chromeFiles/content/scholar/itemPane.xul | 2 +- chrome/chromeFiles/content/scholar/overlay.js | 12 +- .../chromeFiles/content/scholar/overlay.xul | 236 +++++++++--------- .../skin/default/scholar/overlay.css | 10 +- 6 files changed, 130 insertions(+), 138 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/collectionTreeView.js b/chrome/chromeFiles/content/scholar/collectionTreeView.js index b1449d2ab4..868a342a8b 100644 --- a/chrome/chromeFiles/content/scholar/collectionTreeView.js +++ b/chrome/chromeFiles/content/scholar/collectionTreeView.js @@ -25,6 +25,8 @@ Scholar.CollectionTreeView.prototype.setTree = function(treebox) if(this._treebox) return; this._treebox = treebox; + //select Library + this.selection.select(0); } /* diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js index 4b5bc0dc39..5adc28faea 100644 --- a/chrome/chromeFiles/content/scholar/itemPane.js +++ b/chrome/chromeFiles/content/scholar/itemPane.js @@ -55,10 +55,7 @@ ScholarItemPane = new function() * Loads an item */ function viewItem(thisItem) - { - if(document.commandDispatcher.focusedElement) - document.commandDispatcher.focusedElement.blur(); - + { _itemBeingEdited = thisItem; reloadFields(); @@ -257,6 +254,7 @@ ScholarItemPane = new function() t.setAttribute('value',value); t.setAttribute('fieldname',fieldName); t.setAttribute('flex','1'); + t.className = 'fieldeditor'; var box = elem.parentNode; box.replaceChild(t,elem); diff --git a/chrome/chromeFiles/content/scholar/itemPane.xul b/chrome/chromeFiles/content/scholar/itemPane.xul index c60c8fe124..06c4c64df5 100644 --- a/chrome/chromeFiles/content/scholar/itemPane.xul +++ b/chrome/chromeFiles/content/scholar/itemPane.xul @@ -5,7 +5,7 @@ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">