diff --git a/capsule-prototype/js/PopupPanelWidget.js b/capsule-prototype/js/PopupPanelWidget.js index 1e2424e449cecda5c2160d3967c774e67143c6fa..dcb81a7c83004992ae4b220d0b9852a9ed9f6bab 100644 --- a/capsule-prototype/js/PopupPanelWidget.js +++ b/capsule-prototype/js/PopupPanelWidget.js @@ -916,14 +916,18 @@ PopupPanelWidget.prototype.createPopupContent = function (tag) { imageBoxDiv.append(displayOriginalImage); } popupLeftDiv.append(imageBoxDiv); - let downloadElement = $('<a>'); - downloadElement - .html("Download File") - .addClass('popupLeftItem') - .attr('id', 'popupEditDownload') - .attr('href', fileDirectLink) - .attr('download', this.getMetadata('File->File Name')); - popupLeftDiv.append(downloadElement); + + if (this.getMetadata('Rekall->Type') != "rekall/marker" + && this.getMetadata('Rekall->Type') != "rekall/link") { + let downloadElement = $('<a>'); + downloadElement + .html("Download File") + .addClass('popupLeftItem') + .attr('id', 'popupEditDownload') + .attr('href', fileDirectLink) + .attr('download', this.getMetadata('File->File Name')); + popupLeftDiv.append(downloadElement); + } if (popupPanelWidget.canEdit()) { let deleteElement = $('<div>');