From 7f65fe92188ed03db9d4fe82f494a5cc4f4cc655 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Wed, 28 Aug 2019 19:25:11 +0200 Subject: [PATCH] fixing conflicting icons when using error message div for warnings in bootstrap template --- js/privatebin.js | 1 + tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 6b16e7f..c7d638d 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -1596,6 +1596,7 @@ jQuery.PrivateBin = (function($, RawDeflate) { */ me.showWarning = function(message, icon) { + $errorMessage.find(':first').removeClass(currentIcon[3]); handleNotification(2, $errorMessage, message, icon); }; diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 07e86d9..af9a3e2 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -71,7 +71,7 @@ if ($MARKDOWN): endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 51f4661..afd58b3 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -49,7 +49,7 @@ if ($MARKDOWN): endif; ?> - +