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