fixing #209, refactoring regression when file upload is disabled

This commit is contained in:
El RIDO 2017-03-25 18:44:20 +01:00
parent 628696e524
commit cd40717301
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
3 changed files with 4 additions and 3 deletions

View file

@ -2082,7 +2082,8 @@ jQuery.PrivateBin = function($, sjcl, Base64, RawDeflate) {
*/
me.hasAttachment = function()
{
return ($attachmentLink.prop('href') !== '')
var link = $attachmentLink.prop('href');
return (typeof link !== 'undefined' && link !== '')
}
/**