From b001c5433f1dc755118a99d44ff6fd9ea31b9031 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 3 Feb 2011 05:05:11 +0000 Subject: [PATCH] fix a few issues opening the zotero pane --- chrome/content/zotero/advancedSearch.js | 4 ++-- chrome/content/zotero/bindings/noteeditor.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/advancedSearch.js b/chrome/content/zotero/advancedSearch.js index 52d567f9a..f77db7653 100644 --- a/chrome/content/zotero/advancedSearch.js +++ b/chrome/content/zotero/advancedSearch.js @@ -152,8 +152,8 @@ var ZoteroAdvancedSearch = new function() { return; } - if (lastWin.document.getElementById('zotero-pane').getAttribute('hidden') == 'true') { - lastWin.ZoteroPane.toggleDisplay(); + if (lastWin.ZoteroOverlay) { + lastWin.ZoteroOverlay.toggleDisplay(true); } lastWin.ZoteroPane.selectItem(item.getID(), false, true); diff --git a/chrome/content/zotero/bindings/noteeditor.xml b/chrome/content/zotero/bindings/noteeditor.xml index 682ad0fdc..57368c793 100644 --- a/chrome/content/zotero/bindings/noteeditor.xml +++ b/chrome/content/zotero/bindings/noteeditor.xml @@ -318,7 +318,7 @@ } if (lastWin.ZoteroOverlay) { - lastWin.ZoteroOverlay.toggleDisplay(); + lastWin.ZoteroOverlay.toggleDisplay(true); } var zp = lastWin.ZoteroPane;