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;