From b8d00e2051b626fd4cdb6e35ebfd3f096d68d3fc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 3 Nov 2015 17:04:28 -0500 Subject: [PATCH] Fix error showing pages/modified in attachment box --- chrome/content/zotero/bindings/attachmentbox.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/bindings/attachmentbox.xml b/chrome/content/zotero/bindings/attachmentbox.xml index fd53b1a06..e4ca1f847 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 {