mirror of
https://github.com/friendica/friendica
synced 2025-01-31 16:59:52 +00:00
Update view/js/dropzone-factory.js
accept suggestion Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
61e0a2a0f4
commit
da9f9d8964
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ var DzFactory = function (max_imagesize) {
|
|||
const targetTextarea = document.getElementById(textareaElementId);
|
||||
if (targetTextarea.setRangeText) {
|
||||
//if setRangeText function is supported by current browser
|
||||
let u = "[upload-"+file.name+"]";
|
||||
let u = "[upload-" + file.name + "]";
|
||||
targetTextarea.setRangeText(serverResponse, targetTextarea.value.indexOf(u), targetTextarea.value.indexOf(u)+u.length, "end");
|
||||
} else {
|
||||
targetTextarea.focus();
|
||||
|
|
Loading…
Add table
Reference in a new issue