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();
|
||||
}
|
||||
|
||||
// If necessary or reloading, set the type, initialize this._itemData,
|
||||
// and reset _itemDataLoaded
|
||||
// If necessary or reloading, set the type and reinitialize this._itemData
|
||||
if (reload || (!this._itemTypeID && row.itemTypeID)) {
|
||||
this.setType(row.itemTypeID, true);
|
||||
}
|
||||
|
|
|
@ -1302,9 +1302,9 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.purgeOrphanedStorageFiles = functio
|
|||
return;
|
||||
}
|
||||
|
||||
// If recently purged, skip
|
||||
var lastpurge = Zotero.Prefs.get('lastWebDAVOrphanPurge');
|
||||
var days = 10;
|
||||
// Already purged within the last week
|
||||
if (lastpurge && new Date(lastpurge * 1000) > (new Date() - (1000 * 60 * 60 * 24 * days))) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user