Don't change attachment item mod time when downloading unchanged data
From attachmentCharset change
This commit is contained in:
parent
7091431c21
commit
e7710660ef
1 changed files with 12 additions and 3 deletions
|
@ -3241,7 +3241,7 @@ Zotero.Item.prototype.__defineGetter__('attachmentCharset', function () {
|
||||||
return undefined;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._attachmentCharset != undefined) {
|
if (this._attachmentCharset !== undefined) {
|
||||||
return Zotero.CharacterSets.getName(this._attachmentCharset);
|
return Zotero.CharacterSets.getName(this._attachmentCharset);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3264,13 +3264,22 @@ Zotero.Item.prototype.__defineSetter__('attachmentCharset', function (val) {
|
||||||
throw (".attachmentCharset can only be set for attachment items");
|
throw (".attachmentCharset can only be set for attachment items");
|
||||||
}
|
}
|
||||||
|
|
||||||
val = Zotero.CharacterSets.getID(val);
|
var oldVal = this.attachmentCharset;
|
||||||
|
if (oldVal) {
|
||||||
|
oldVal = Zotero.CharacterSets.getID(oldVal);
|
||||||
|
}
|
||||||
|
if (!oldVal) {
|
||||||
|
oldVal = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (val) {
|
||||||
|
val = Zotero.CharacterSets.getID(val);
|
||||||
|
}
|
||||||
if (!val) {
|
if (!val) {
|
||||||
val = null;
|
val = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (val == this.attachmentCharset) {
|
if (val == oldVal) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue