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">