diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js
index 7c6dd4ff5..33133cef6 100644
--- a/chrome/chromeFiles/content/scholar/itemPane.js
+++ b/chrome/chromeFiles/content/scholar/itemPane.js
@@ -116,14 +116,15 @@ ScholarItemPane = new function()
var icon = document.createElement('image');
icon.setAttribute('src','chrome://scholar/skin/treeitem-note.png');
- var button = document.createElement('label');
- button.setAttribute('value',_noteToTitle(_itemBeingEdited.getNote(notes[i])));
+ var label = document.createElement('label');
+ label.setAttribute('value',_noteToTitle(_itemBeingEdited.getNote(notes[i])));
+ label.setAttribute('crop','end');
box = document.createElement('box');
box.setAttribute('onclick',"window.open('chrome://scholar/content/note.xul?item="+_itemBeingEdited.getID()+"¬e="+notes[i]+"','','chrome,resizable,centerscreen');");
box.setAttribute('class','clicky');
box.appendChild(icon);
- box.appendChild(button);
+ box.appendChild(label);
var removeButton = document.createElement('label');
removeButton.setAttribute("value","-");
diff --git a/chrome/chromeFiles/content/scholar/itemPane.xul b/chrome/chromeFiles/content/scholar/itemPane.xul
index ac5c35411..27d65c35b 100644
--- a/chrome/chromeFiles/content/scholar/itemPane.xul
+++ b/chrome/chromeFiles/content/scholar/itemPane.xul
@@ -25,14 +25,14 @@
-
-
-
+
-
-
-
+
+
+
+
+
diff --git a/chrome/chromeFiles/content/scholar/note.js b/chrome/chromeFiles/content/scholar/note.js
index 99f8e95fc..b68283076 100644
--- a/chrome/chromeFiles/content/scholar/note.js
+++ b/chrome/chromeFiles/content/scholar/note.js
@@ -6,6 +6,8 @@ var _notesField;
function onLoad()
{
_notesField = document.getElementById('notes-box');
+ _notesField.focus();
+
var params = new Array();
var b = document.location.href.substr(document.location.href.indexOf('?')+1).split('&');
for(var i = 0; i < b.length; i++)
@@ -22,6 +24,11 @@ function onLoad()
_notesField.setAttribute('value',item.getNote(noteID));
}
+function onUnload()
+{
+ save();
+}
+
function save()
{
if(noteID)
@@ -30,4 +37,5 @@ function save()
noteID = item.addNote(_notesField.value);
}
-addEventListener("load", function(e) { onLoad(e); }, false);
\ No newline at end of file
+addEventListener("load", function(e) { onLoad(e); }, false);
+addEventListener("unload", function(e) { onUnload(e); }, false);
\ No newline at end of file
diff --git a/chrome/chromeFiles/content/scholar/note.xul b/chrome/chromeFiles/content/scholar/note.xul
index ae4e294c2..d88298f57 100644
--- a/chrome/chromeFiles/content/scholar/note.xul
+++ b/chrome/chromeFiles/content/scholar/note.xul
@@ -12,6 +12,11 @@
+
+
+
+
+
diff --git a/chrome/chromeFiles/skin/default/scholar/overlay.css b/chrome/chromeFiles/skin/default/scholar/overlay.css
index f52c8613e..9a257148c 100644
--- a/chrome/chromeFiles/skin/default/scholar/overlay.css
+++ b/chrome/chromeFiles/skin/default/scholar/overlay.css
@@ -90,7 +90,7 @@ vbox #scholar-pane
width: 150px;
}
-#scholar-info
+#scholar-view-item vbox
{
overflow: auto;
}