From 8455b4ce0a2795209b8071ec057531a6180a943c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 19 Aug 2009 13:05:23 +0000 Subject: [PATCH] Reorder --- chrome/content/zotero/xpcom/data/item.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) 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 *