Adding Bootstrap Classname to dynamically created child element

This commit is contained in:
Stephan Kristyn
2026-02-10 18:22:17 +01:00
parent e2b4b8a7f8
commit 9ab16674aa
6 changed files with 6 additions and 13 deletions
+1 -1
View File
@@ -2996,7 +2996,7 @@ jQuery.PrivateBin = (function($) {
const fileSize = Helper.formatBytes(decodedData.length);
const fileInfo = document.createElement('span');
fileInfo.id = 'attachmentInfo';
fileInfo.class = 'alert';
fileInfo.textContent = ` (${fileName}, ${fileSize})`;
template[0].appendChild(fileInfo);
}