From a9bf667f8ecfc46116cccef836b8b35371dde378 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 4 Jan 2020 13:33:03 +0100 Subject: [PATCH] address error, displayed when paste has attachment, but configuration has them disabled --- js/privatebin.js | 2 +- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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; ?> - +