commit b8d00e2051b626fd4cdb6e35ebfd3f096d68d3fc
parent b52cfae2252835bfcf0fe692b5628001f848ecb6
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 3 Nov 2015 17:04:28 -0500
Fix error showing pages/modified in attachment box
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git 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 {