commit 07efe0304ec110111581d771608d487b4824d1e3
parent efe5d8669cc3a1738556a820be5df1e6ab2a8077
Author: Dan Stillman <dstillman@zotero.org>
Date: Fri, 9 Mar 2018 15:01:33 -0500
Fix separate-window button for child notes (broken by 96e96c0348)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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);
};