commit 0e73b1cc6127c428b1f61e95b5759defc33a680d
parent 8cfca53b48a5cf36a22e05fcf67647f77536337d
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 19 May 2015 21:36:00 -0400
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
Diffstat:
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git 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();