forked from rDrama/rDrama
minor improvement to file js code
parent
eb5f2723c2
commit
305fa9e052
|
@ -473,7 +473,10 @@ function handle_files(input, newfiles) {
|
|||
if (span.innerHTML != ' ') span.innerHTML += ', '
|
||||
span.innerHTML += file.name.substr(0, 30);
|
||||
if (location.pathname != '/chat')
|
||||
if (ta.value)
|
||||
ta.setRangeText(`\n[${file.name}]`);
|
||||
else
|
||||
ta.setRangeText(`[${file.name}]`);
|
||||
}
|
||||
|
||||
autoExpand(ta)
|
||||
|
|
Loading…
Reference in New Issue