This commit is contained in:
Dan Stillman 2009-08-19 13:05:23 +00:00
parent 5d78e25bbb
commit 8455b4ce0a

View File

@ -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
*