From 97f662fe6720635e62fce0322091656f64bbedfe Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 5 Aug 2013 20:47:50 -0400 Subject: [PATCH] Fix note resetting in external note window during file syncing https://forums.zotero.org/discussion/29008 --- chrome/content/zotero/note.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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