diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js
index 019ea1435e..e86b9eb149 100644
--- a/chrome/chromeFiles/content/scholar/overlay.js
+++ b/chrome/chromeFiles/content/scholar/overlay.js
@@ -6,6 +6,7 @@ var ScholarPane = new function()
var promptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService(Components.interfaces.nsIPromptService);
this.init = init;
+ this.toggleScholar = toggleScholar;
this.newItem = newItem;
this.newFolder = newFolder;
this.folderSelected = folderSelected;
@@ -30,6 +31,14 @@ var ScholarPane = new function()
}
}
+ function toggleScholar()
+ {
+ var visible = document.getElementById('scholar-pane').getAttribute('collapsed') == 'true';
+
+ document.getElementById('scholar-pane').setAttribute('collapsed',!visible);
+ document.getElementById('scholar-splitter').setAttribute('collapsed',!visible);
+ }
+
function newItem(typeID)
{
alert("new item of type: "+typeID);
diff --git a/chrome/chromeFiles/content/scholar/overlay.xul b/chrome/chromeFiles/content/scholar/overlay.xul
index a174412d5b..9eb289ad5b 100644
--- a/chrome/chromeFiles/content/scholar/overlay.xul
+++ b/chrome/chromeFiles/content/scholar/overlay.xul
@@ -18,7 +18,7 @@
-
+
-
+
@@ -83,13 +83,14 @@
+
-
+
-
+