From 07efe0304ec110111581d771608d487b4824d1e3 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 9 Mar 2018 15:01:33 -0500 Subject: [PATCH] Fix separate-window button for child notes (broken by 96e96c0348) --- chrome/content/zotero/itemPane.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/itemPane.js b/chrome/content/zotero/itemPane.js index 4f55bcdf01..9a432ef318 100644 --- a/chrome/content/zotero/itemPane.js +++ b/chrome/content/zotero/itemPane.js @@ -263,6 +263,7 @@ var ZoteroItemPane = new function() { * Select the parent item and open the note editor */ this.openNoteWindow = async function () { + var noteID = _selectedNote.id; // We don't want to show the note in two places, since it causes unnecessary UI updates // and can result in weird bugs where note content gets lost. // @@ -274,7 +275,7 @@ var ZoteroItemPane = new function() { else { this.showNoteWindowMessage(); } - ZoteroPane.openNoteWindow(_selectedNote.id); + ZoteroPane.openNoteWindow(noteID); };