From 90b7380563a5dc5196f119c9f2b35174c24a548f Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 3 Feb 2011 07:17:55 +0000 Subject: [PATCH] more tab code changes --- chrome/skin/default/zotero/timeline/timeline.html | 2 +- components/zotero-protocol-handler.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/chrome/skin/default/zotero/timeline/timeline.html b/chrome/skin/default/zotero/timeline/timeline.html index 82b488556..a79d26370 100644 --- a/chrome/skin/default/zotero/timeline/timeline.html +++ b/chrome/skin/default/zotero/timeline/timeline.html @@ -84,7 +84,7 @@ var win = wm.getMostRecentWindow('navigator:browser'); var zp = win.ZoteroPane; zp.show(); - zp.getActiveZoteroPane().selectItem(evt.getDescription()); + zp.selectItem(evt.getDescription()); } document.write("" + getString("general.title") + ""); diff --git a/components/zotero-protocol-handler.js b/components/zotero-protocol-handler.js index 63343f561..188898d72 100644 --- a/components/zotero-protocol-handler.js +++ b/components/zotero-protocol-handler.js @@ -840,6 +840,7 @@ function ChromeExtensionHandler() { var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator); var win = wm.getMostRecentWindow(null); + win.ZoteroPane.show(); var lkh = Zotero.Items.parseLibraryKeyHash(id); @@ -856,7 +857,7 @@ function ChromeExtensionHandler() { return; } - win.ZoteroPane.getActiveZoteroPane().selectItem(item.id); + win.ZoteroPane.selectItem(item.id); } catch (e){ Zotero.debug(e); @@ -882,7 +883,7 @@ function ChromeExtensionHandler() { var win = Components.classes["@mozilla.org/appshell/window-mediator;1"] .getService(Components.interfaces.nsIWindowMediator) .getMostRecentWindow("navigator:browser"); - win.loadURI("chrome://zotero/content/tab.xul"); + win.ZoteroOverlay.toggleTab(true); } catch (e) { Zotero.debug(e);