From ddb1c550f5c7359842f75df6a3b42b04c6d291b3 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 23 Jun 2019 19:55:25 +0200 Subject: [PATCH] remove alerts when missing showdown & prettify libraries, if the are missing it is intentionally done in the configuration, fixes #237 --- js/privatebin.js | 14 -------------- tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 50ce23c..aa32143 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -2413,20 +2413,6 @@ jQuery.PrivateBin = (function($, RawDeflate) { $prettyMessage = $('#prettymessage'); $prettyPrint = $('#prettyprint'); - // check requirements - if (typeof prettyPrintOne !== 'function') { - Alert.showError([ - 'The library %s is not available. This may cause display errors.', - 'pretty print' - ]); - } - if (typeof showdown !== 'object') { - Alert.showError([ - 'The library %s is not available. This may cause display errors.', - 'showdown' - ]); - } - // get default option from template/HTML or fall back to set value format = Model.getFormatDefault() || format; text = ''; diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 304cacd..e2e7e1d 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -72,7 +72,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 59e8ea8..1e0e86c 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -50,7 +50,7 @@ if ($MARKDOWN): endif; ?> - +