From 36afe4573f2d0f088c752d49d6d566f45897f64c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 11 Apr 2020 14:57:32 -0400 Subject: [PATCH] Fix item selection from timeline --- chrome/skin/default/zotero/timeline/timeline.html | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/chrome/skin/default/zotero/timeline/timeline.html b/chrome/skin/default/zotero/timeline/timeline.html index b0e332a0dd..4c641c4bfa 100644 --- a/chrome/skin/default/zotero/timeline/timeline.html +++ b/chrome/skin/default/zotero/timeline/timeline.html @@ -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())); }