Clear previousData after item save
This commit is contained in:
parent
e95a919c12
commit
a1865f5e18
1 changed files with 2 additions and 0 deletions
|
@ -2032,6 +2032,8 @@ Zotero.Item.prototype.save = function() {
|
||||||
Zotero.Notifier.trigger('modify', 'item', this.id, { old: this._previousData });
|
Zotero.Notifier.trigger('modify', 'item', this.id, { old: this._previousData });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this._previousData = null;
|
||||||
|
|
||||||
if (isNew) {
|
if (isNew) {
|
||||||
var id = this.id;
|
var id = this.id;
|
||||||
this._disabled = true;
|
this._disabled = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue