fix a few issues opening the zotero pane

This commit is contained in:
Simon Kornblith 2011-02-03 05:05:11 +00:00
parent c722bbff56
commit b001c5433f
2 changed files with 3 additions and 3 deletions

View file

@ -152,8 +152,8 @@ var ZoteroAdvancedSearch = new function() {
return; return;
} }
if (lastWin.document.getElementById('zotero-pane').getAttribute('hidden') == 'true') { if (lastWin.ZoteroOverlay) {
lastWin.ZoteroPane.toggleDisplay(); lastWin.ZoteroOverlay.toggleDisplay(true);
} }
lastWin.ZoteroPane.selectItem(item.getID(), false, true); lastWin.ZoteroPane.selectItem(item.getID(), false, true);

View file

@ -318,7 +318,7 @@
} }
if (lastWin.ZoteroOverlay) { if (lastWin.ZoteroOverlay) {
lastWin.ZoteroOverlay.toggleDisplay(); lastWin.ZoteroOverlay.toggleDisplay(true);
} }
var zp = lastWin.ZoteroPane; var zp = lastWin.ZoteroPane;