diff --git a/chrome/content/zotero/note.js b/chrome/content/zotero/note.js index b3972aa83..c4cb38ecc 100644 --- a/chrome/content/zotero/note.js +++ b/chrome/content/zotero/note.js @@ -88,8 +88,7 @@ function onUnload() var NotifyCallback = { notify: function(action, type, ids){ - // DEBUG: why does this reset without checking the modified ids? - if (noteEditor.item) { + if (noteEditor.item && ids.indexOf(noteEditor.item.id) != -1) { noteEditor.item = noteEditor.item; // If the document title hasn't yet been set, reset undo so