Update view/js/dropzone-factory.js

accept suggestion

Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
xundeenergie 2025-01-11 18:22:00 +01:00 committed by GitHub
parent 61e0a2a0f4
commit da9f9d8964
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();