commit 965f4c3c0a5845d4de3e3491fe3ace355c616724
parent cb8f961639820203f319d118d8dacb7dd6811070
Author: David Norton <david@nortoncrew.com>
Date: Wed, 28 Jun 2006 15:15:38 +0000
Fixes #97, target="_blank" error
All windows opened will check their opener and try to match the collapsed state of the scholar pane to that of the window that opened it.
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js
@@ -37,6 +37,17 @@ var ScholarPane = new function()
//select Library
collectionsView.selection.select(0);
+ if(window.opener)
+ {
+ var pane = window.opener.document.getElementById('scholar-pane');
+ if(pane)
+ {
+ var b = pane.getAttribute('collapsed');
+ if(b != document.getElementById('scholar-pane').getAttribute('collapsed'))
+ toggleDisplay();
+ }
+ }
+
//Create the add menu with each item type
var addMenu = document.getElementById('tb-add').firstChild;
var itemTypes = Scholar.ItemTypes.getTypes();