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
This commit is contained in:
Dan Stillman 2015-05-19 21:36:00 -04:00
parent 8cfca53b48
commit 0e73b1cc61

View File

@ -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();