Clear changed state of annotation after saving color change
This was resulting in an extra 'modify' event after each sync upload.
This commit is contained in:
parent
ea42789206
commit
0d377a1c4a
2 changed files with 2 additions and 1 deletions
|
@ -1873,7 +1873,7 @@ Zotero.Item.prototype._saveData = Zotero.Promise.coroutine(function* (env) {
|
|||
}.bind(this));
|
||||
}
|
||||
|
||||
let fields = ['Type', 'Text', 'Comment', 'PageLabel', 'SortIndex', 'Position', 'IsExternal'];
|
||||
let fields = ['Type', 'Text', 'Comment', 'Color', 'PageLabel', 'SortIndex', 'Position', 'IsExternal'];
|
||||
for (let field of fields) {
|
||||
this._clearChanged('annotation' + field);
|
||||
}
|
||||
|
|
|
@ -1339,6 +1339,7 @@ describe("Zotero.Item", function () {
|
|||
annotation.parentID = attachment.id;
|
||||
annotation.annotationType = 'highlight';
|
||||
annotation.annotationText = "This is highlighted text.";
|
||||
annotation.annotationColor = "#ffff66";
|
||||
annotation.annotationSortIndex = '00015|002431|00000';
|
||||
annotation.annotationPosition = JSON.stringify({
|
||||
pageIndex: 123,
|
||||
|
|
Loading…
Reference in a new issue