fixing #209, refactoring regression when file upload is disabled
This commit is contained in:
@@ -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 !== '')
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user