From 0e73b1cc6127c428b1f61e95b5759defc33a680d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 19 May 2015 21:36:00 -0400 Subject: [PATCH] Remove code to check for changes after note reselection No longer necessary, since items aren't reselected on change, and the dateModified check was insufficient --- chrome/content/zotero/bindings/noteeditor.xml | 9 --------- 1 file changed, 9 deletions(-) diff --git a/chrome/content/zotero/bindings/noteeditor.xml b/chrome/content/zotero/bindings/noteeditor.xml index d6e2194aa8..dccdc333cb 100644 --- a/chrome/content/zotero/bindings/noteeditor.xml +++ b/chrome/content/zotero/bindings/noteeditor.xml @@ -257,15 +257,6 @@ // Update note var noteField = this._id('noteField'); if (this.item) { - // If note is reselected automatically after save - // from external note window, don't overwrite content - // - // TODO: use clientDateModified instead - if (this.item.getField('dateModified') != this._mtime) { - Zotero.debug("Note has already been changed", 4); - return; - } - let changed = this.item.setNote(noteField.value); if (changed && this.saveOnEdit) { yield this.item.saveTx();