mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-03-05 13:30:32 -05:00
Now leaving styling to customer if he wants the filename and filesize as a hyperlink or outside the hyperlink
This commit is contained in:
@@ -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})`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user