Fix note resetting in external note window during file syncing

https://forums.zotero.org/discussion/29008
This commit is contained in:
Dan Stillman 2013-08-05 20:47:50 -04:00
parent 675fde2f1a
commit 97f662fe67

View file

@ -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