Fix separate-window button for child notes (broken by 96e96c0348)

This commit is contained in:
Dan Stillman 2018-03-09 15:01:33 -05:00
parent efe5d8669c
commit 07efe0304e

View file

@ -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);
};