mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-07-17 16:39:40 +00:00
Insert file names as break-separated text nodes
Co-authored-by: El RIDO <elrido@gmx.net>
This commit is contained in:
parent
9c71fbcc70
commit
ff5aee85b4
1 changed files with 3 additions and 3 deletions
|
|
@ -3091,9 +3091,9 @@ jQuery.PrivateBin = (function($) {
|
|||
function printDragAndDropFileNames(fileNames) {
|
||||
$dragAndDropFileNames.empty();
|
||||
fileNames.forEach(fileName => {
|
||||
const div = document.createElement('div');
|
||||
div.textContent = fileName;
|
||||
$(div).appendTo($dragAndDropFileNames);
|
||||
const name = document.createTextNode(fileName);
|
||||
$dragAndDropFileNames[0].appendChild(name);
|
||||
$dragAndDropFileNames[0].appendChild(document.createElement('br'));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue