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