Fix separate-window button for child notes (broken by 96e96c0348
)
This commit is contained in:
parent
efe5d8669c
commit
07efe0304e
1 changed files with 2 additions and 1 deletions
|
@ -263,6 +263,7 @@ var ZoteroItemPane = new function() {
|
||||||
* Select the parent item and open the note editor
|
* Select the parent item and open the note editor
|
||||||
*/
|
*/
|
||||||
this.openNoteWindow = async function () {
|
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
|
// 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.
|
// and can result in weird bugs where note content gets lost.
|
||||||
//
|
//
|
||||||
|
@ -274,7 +275,7 @@ var ZoteroItemPane = new function() {
|
||||||
else {
|
else {
|
||||||
this.showNoteWindowMessage();
|
this.showNoteWindowMessage();
|
||||||
}
|
}
|
||||||
ZoteroPane.openNoteWindow(_selectedNote.id);
|
ZoteroPane.openNoteWindow(noteID);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue