Now leaving styling to customer if he wants the filename and filesize as a hyperlink or outside the hyperlink

This commit is contained in:
Stephan Kristyn
2026-02-11 19:03:34 +01:00
parent 755be747a6
commit cfea0fb20e
4 changed files with 5 additions and 10 deletions

View File

@@ -2995,7 +2995,8 @@ jQuery.PrivateBin = (function($) {
attachmentLink.attr('download', fileName);
const fileSize = Helper.formatBytes(decodedData.length);
const span = template[0].querySelector('a > span');
const spans = template[0].querySelectorAll('span');
const span = spans[spans.length - 1];
span.textContent = ` (${fileName}, ${fileSize})`;
}