From 965f4c3c0a5845d4de3e3491fe3ace355c616724 Mon Sep 17 00:00:00 2001 From: David Norton Date: Wed, 28 Jun 2006 15:15:38 +0000 Subject: [PATCH] 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. --- chrome/chromeFiles/content/scholar/overlay.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js index 1aabe1a7c..955b9e779 100644 --- 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();