Fixed decryption of pastes without attachment, that have a password

This commit is contained in:
thororm 2017-08-12 13:26:43 +02:00
parent b5c259dd72
commit 28b8f878dc
3 changed files with 5 additions and 5 deletions

View file

@ -2030,7 +2030,7 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
/**
* removes the attachment
*
* This automatically hides the attachment containers to, to
* This automatically hides the attachment containers too, to
* prevent an inconsistent display.
*
* @name AttachmentViewer.removeAttachment
@ -2043,8 +2043,8 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
}
me.hideAttachment();
me.hideAttachmentPreview();
$attachmentLink.prop('href', '');
$attachmentLink.prop('download', '');
$attachmentLink.removeAttr('href');
$attachmentLink.removeAttr('download');
$attachmentPreview.html('');
file = undefined;