Fix item selection from timeline
This commit is contained in:
parent
3d3c90215d
commit
36afe4573f
1 changed files with 1 additions and 6 deletions
|
@ -79,12 +79,7 @@
|
|||
}
|
||||
|
||||
Timeline.DurationEventPainter.prototype._showBubble = function(x, y, evt) {
|
||||
// Get ChromeWindow so we have access to ZoteroPane (overlay.js)
|
||||
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
|
||||
.getService(Components.interfaces.nsIWindowMediator);
|
||||
var win = wm.getMostRecentWindow('navigator:browser');
|
||||
var zp = win.ZoteroPane;
|
||||
zp.show();
|
||||
let zp = Zotero.getActiveZoteroPane();
|
||||
zp.selectItem(parseInt(evt.getDescription()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue