www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5d78e25bbbc16e22aa28e99818da89c22aa7e74d
parent 94f53f70f914ee28b9a99b65c6e95c57eb720cd3
Author: Dan Stillman <dstillman@zotero.org>
Date:   Wed, 19 Aug 2009 13:04:32 +0000

Zotero.Item.isImportedAttachment()


Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 12++++++++++++
1 file changed, 12 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -2397,6 +2397,18 @@ Zotero.Item.prototype.isWebAttachment = function() { } +Zotero.Item.prototype.isImportedAttachment = function() { + if (!this.isAttachment()) { + return false; + } + var linkMode = this.attachmentLinkMode; + if (linkMode == Zotero.Attachments.LINK_MODE_IMPORTED_FILE || linkMode == Zotero.Attachments.LINK_MODE_IMPORTED_URL) { + return false; + } + return true; +} + + /** * Returns number of child attachments of item *