Update a couple comments
This commit is contained in:
parent
0bb4b0afdd
commit
43effcb1a6
|
@ -345,8 +345,7 @@ Zotero.Item.prototype.loadFromRow = function(row, reload) {
|
||||||
this._init();
|
this._init();
|
||||||
}
|
}
|
||||||
|
|
||||||
// If necessary or reloading, set the type, initialize this._itemData,
|
// If necessary or reloading, set the type and reinitialize this._itemData
|
||||||
// and reset _itemDataLoaded
|
|
||||||
if (reload || (!this._itemTypeID && row.itemTypeID)) {
|
if (reload || (!this._itemTypeID && row.itemTypeID)) {
|
||||||
this.setType(row.itemTypeID, true);
|
this.setType(row.itemTypeID, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1302,9 +1302,9 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.purgeOrphanedStorageFiles = functio
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If recently purged, skip
|
||||||
var lastpurge = Zotero.Prefs.get('lastWebDAVOrphanPurge');
|
var lastpurge = Zotero.Prefs.get('lastWebDAVOrphanPurge');
|
||||||
var days = 10;
|
var days = 10;
|
||||||
// Already purged within the last week
|
|
||||||
if (lastpurge && new Date(lastpurge * 1000) > (new Date() - (1000 * 60 * 60 * 24 * days))) {
|
if (lastpurge && new Date(lastpurge * 1000) > (new Date() - (1000 * 60 * 60 * 24 * days))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user