more tab code changes
This commit is contained in:
parent
9dd8a7119d
commit
90b7380563
2 changed files with 4 additions and 3 deletions
|
@ -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>");
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue