diff --git a/chrome/content/zotero/bindings/attachmentbox.xml b/chrome/content/zotero/bindings/attachmentbox.xml index fd53b1a068..e4ca1f8478 100644 --- a/chrome/content/zotero/bindings/attachmentbox.xml +++ b/chrome/content/zotero/bindings/attachmentbox.xml @@ -300,7 +300,7 @@ else { pagesRow.hidden = true; } - }); + }.bind(this)); } else { pagesRow.hidden = true; @@ -321,12 +321,11 @@ this.item.attachmentModificationTime .tap(() => Zotero.Promise.check(this._id)) .then(function (mtime) { - if (!this._id) return; if (mtime) { this._id("dateModified").value = new Date(mtime).toLocaleString(); } dateModifiedRow.hidden = false; - }); + }.bind(this)); } } else {