Set a default annotation color if not assigned
https://forums.zotero.org/discussion/104249/sync-issue-on-ipados
This commit is contained in:
parent
400396be25
commit
ce16a28f4a
2 changed files with 3 additions and 1 deletions
|
@ -33,6 +33,8 @@ Zotero.Annotations = new function () {
|
|||
Zotero.defineProperty(this, 'ANNOTATION_TYPE_IMAGE', { value: 3 });
|
||||
Zotero.defineProperty(this, 'ANNOTATION_TYPE_INK', { value: 4 });
|
||||
|
||||
Zotero.defineProperty(this, 'DEFAULT_COLOR', { value: 'ffd400' });
|
||||
|
||||
Zotero.defineProperty(this, 'PROPS', {
|
||||
value: ['type', 'authorName', 'text', 'comment', 'color', 'pageLabel', 'sortIndex', 'position'],
|
||||
writable: false
|
||||
|
|
|
@ -1935,7 +1935,7 @@ Zotero.Item.prototype._saveData = Zotero.Promise.coroutine(function* (env) {
|
|||
authorName || null,
|
||||
text || null,
|
||||
comment || null,
|
||||
color || null,
|
||||
color || Zotero.Annotations.DEFAULT_COLOR,
|
||||
pageLabel || null,
|
||||
sortIndex,
|
||||
position,
|
||||
|
|
Loading…
Reference in a new issue