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:
parent
8cfca53b48
commit
0e73b1cc61
1 changed files with 0 additions and 9 deletions
|
@ -257,15 +257,6 @@
|
||||||
// Update note
|
// Update note
|
||||||
var noteField = this._id('noteField');
|
var noteField = this._id('noteField');
|
||||||
if (this.item) {
|
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);
|
let changed = this.item.setNote(noteField.value);
|
||||||
if (changed && this.saveOnEdit) {
|
if (changed && this.saveOnEdit) {
|
||||||
yield this.item.saveTx();
|
yield this.item.saveTx();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue