mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2026-01-23 02:35:23 +00:00
Insert drag and drop file names as a text, not html
This commit is contained in:
parent
591d2d40e1
commit
14b68af528
2 changed files with 6 additions and 3 deletions
|
|
@ -3086,10 +3086,13 @@ jQuery.PrivateBin = (function($) {
|
|||
* @name AttachmentViewer.printDragAndDropFileNames
|
||||
* @private
|
||||
* @function
|
||||
* @param {array} fileNames
|
||||
* @param {string[]} fileNames
|
||||
*/
|
||||
function printDragAndDropFileNames(fileNames) {
|
||||
$dragAndDropFileNames.html(fileNames.join('<br>'));
|
||||
$dragAndDropFileNames.empty();
|
||||
fileNames.forEach(fileName => {
|
||||
$('<div>').text(fileName).appendTo($dragAndDropFileNames);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue