diff --git a/js/privatebin.js b/js/privatebin.js index 66cc98ed..d16eb4dc 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -3088,8 +3088,8 @@ jQuery.PrivateBin = (function($, RawDeflate) { $attachment = $('#attachment'); $dragAndDropFileName = $('#dragAndDropFileName'); $dropzone = $('#dropzone'); + $attachmentLink = $('#attachment a') || $(''); if($attachment.length) { - $attachmentLink = $('#attachment a'); $attachmentPreview = $('#attachmentPreview'); $fileInput = $('#file'); diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index a210a858..63751345 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 8aac8857..cb0aabc4 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - +