diff --git a/js/privatebin.js b/js/privatebin.js index 5c77ed8c..cd5502fc 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -2995,10 +2995,8 @@ jQuery.PrivateBin = (function($) { attachmentLink.attr('download', fileName); const fileSize = Helper.formatBytes(decodedData.length); - const fileInfo = document.createElement('span'); - fileInfo.class = 'alert'; - fileInfo.textContent = ` (${fileName}, ${fileSize})`; - template[0].appendChild(fileInfo); + const span = template[0].querySelector('a > span'); + span.textContent = ` (${fileName}, ${fileSize})`; } // sanitize SVG preview diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index ab45060e..b0d45142 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -691,7 +691,10 @@ endif; diff --git a/tpl/bootstrap5.php b/tpl/bootstrap5.php index 47b1fcec..073feb62 100644 --- a/tpl/bootstrap5.php +++ b/tpl/bootstrap5.php @@ -549,7 +549,10 @@ endif;