forked from MarseyWorld/MarseyWorld
same as last commit
parent
113791ca69
commit
4c16aa2093
|
@ -83,15 +83,6 @@
|
|||
if (filename)
|
||||
{
|
||||
filename = filename.name.toLowerCase()
|
||||
if (document.activeElement.id == 'post-text') {
|
||||
let filename = ''
|
||||
for (const file of files)
|
||||
filename += file.name + ', '
|
||||
filename = filename.toLowerCase().slice(0, -2)
|
||||
document.getElementById('file-upload-submit').files = files;
|
||||
document.getElementById('filename-show-submit').textContent = filename;
|
||||
}
|
||||
else {
|
||||
f=document.getElementById('file-upload');
|
||||
f.files = files;
|
||||
document.getElementById('filename-show').textContent = filename;
|
||||
|
@ -103,9 +94,6 @@
|
|||
}
|
||||
document.getElementById('file-upload').setAttribute('required', 'false');
|
||||
}
|
||||
document.getElementById('post-url').value = null;
|
||||
localStorage.setItem("post-url", "")
|
||||
}
|
||||
}
|
||||
|
||||
document.getElementById('file-upload').addEventListener('change', function(){
|
||||
|
|
Loading…
Reference in New Issue