From 041e607dd7e1f364fc47da595fbf18369a9e1c87 Mon Sep 17 00:00:00 2001 From: David Norton Date: Wed, 31 May 2006 22:01:31 +0000 Subject: [PATCH] Some toggling options for the Scholar pane (persists). --- chrome/chromeFiles/content/scholar/overlay.js | 9 +++++++++ chrome/chromeFiles/content/scholar/overlay.xul | 11 ++++++----- chrome/chromeFiles/content/scholar/view.xul | 1 + chrome/chromeFiles/skin/default/scholar/overlay.css | 3 ++- 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js index 019ea1435..e86b9eb14 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 a174412d5..9eb289ad5 100644 --- a/chrome/chromeFiles/content/scholar/overlay.xul +++ b/chrome/chromeFiles/content/scholar/overlay.xul @@ -18,7 +18,7 @@ - + - + @@ -83,13 +83,14 @@ - + - +