forked from rDrama/rDrama
stop removing the last 2 characters of filenames (no clue why this is a thing)
parent
c712fb4b9d
commit
530233796c
|
@ -276,7 +276,7 @@ document.onpaste = function(event) {
|
||||||
let filename = ''
|
let filename = ''
|
||||||
for (const file of files)
|
for (const file of files)
|
||||||
filename += file.name + ', '
|
filename += file.name + ', '
|
||||||
filename = filename.toLowerCase().slice(0, -2)
|
filename = filename.toLowerCase()
|
||||||
f.files = files;
|
f.files = files;
|
||||||
document.getElementById('filename-show-reply-' + fullname).textContent = filename;
|
document.getElementById('filename-show-reply-' + fullname).textContent = filename;
|
||||||
}
|
}
|
||||||
|
@ -288,7 +288,7 @@ document.onpaste = function(event) {
|
||||||
let filename = ''
|
let filename = ''
|
||||||
for (const file of files)
|
for (const file of files)
|
||||||
filename += file.name + ', '
|
filename += file.name + ', '
|
||||||
filename = filename.toLowerCase().slice(0, -2)
|
filename = filename.toLowerCase()
|
||||||
f.files = files;
|
f.files = files;
|
||||||
document.getElementById('filename-edit-reply-' + id).textContent = filename;
|
document.getElementById('filename-edit-reply-' + id).textContent = filename;
|
||||||
}
|
}
|
||||||
|
@ -298,7 +298,7 @@ document.onpaste = function(event) {
|
||||||
let filename = ''
|
let filename = ''
|
||||||
for (const file of files)
|
for (const file of files)
|
||||||
filename += file.name + ', '
|
filename += file.name + ', '
|
||||||
filename = filename.toLowerCase().slice(0, -2)
|
filename = filename.toLowerCase()
|
||||||
f.files = files;
|
f.files = files;
|
||||||
document.getElementById('filename-show-edit-' + id).textContent = filename;
|
document.getElementById('filename-show-edit-' + id).textContent = filename;
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,7 +101,7 @@ document.onpaste = function(event) {
|
||||||
let filename = ''
|
let filename = ''
|
||||||
for (const file of files)
|
for (const file of files)
|
||||||
filename += file.name + ', '
|
filename += file.name + ', '
|
||||||
filename = filename.toLowerCase().slice(0, -2)
|
filename = filename.toLowerCase()
|
||||||
f.files = files;
|
f.files = files;
|
||||||
document.getElementById('filename-show').textContent = filename;
|
document.getElementById('filename-show').textContent = filename;
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,7 @@ document.onpaste = function(event) {
|
||||||
let filename = ''
|
let filename = ''
|
||||||
for (const file of files)
|
for (const file of files)
|
||||||
filename += file.name + ', '
|
filename += file.name + ', '
|
||||||
filename = filename.toLowerCase().slice(0, -2)
|
filename = filename.toLowerCase()
|
||||||
document.getElementById('file-upload-submit').files = files;
|
document.getElementById('file-upload-submit').files = files;
|
||||||
document.getElementById('filename-show-submit').textContent = filename;
|
document.getElementById('filename-show-submit').textContent = filename;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue