more tab code changes

This commit is contained in:
Simon Kornblith 2011-02-03 07:17:55 +00:00
parent 9dd8a7119d
commit 90b7380563
2 changed files with 4 additions and 3 deletions

View file

@ -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>");

View file

@ -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);