www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 90b7380563a5dc5196f119c9f2b35174c24a548f
parent 9dd8a7119d31f2418752319e9527b7eaab236d9f
Author: Simon Kornblith <simon@simonster.com>
Date:   Thu,  3 Feb 2011 07:17:55 +0000

more tab code changes


Diffstat:
Mchrome/skin/default/zotero/timeline/timeline.html | 2+-
Mcomponents/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 @@ -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("<title>" + getString("general.title") + "</title>"); diff --git 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);