commit 97f662fe6720635e62fce0322091656f64bbedfe
parent 675fde2f1a894a7e824e19002a4febc439353250
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 5 Aug 2013 20:47:50 -0400
Fix note resetting in external note window during file syncing
https://forums.zotero.org/discussion/29008
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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