diff --git a/js/privatebin.js b/js/privatebin.js index 66cc98e..d16eb4d 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 a210a85..6375134 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 8aac885..cb0aabc 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ endif; ?> - +