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:21:33 +01:00 committed by GitHub
parent f55ed01fb5
commit 61e0a2a0f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,7 +25,7 @@ var DzFactory = function (max_imagesize) {
accept: function(file, done) { accept: function(file, done) {
const targetTextarea = document.getElementById(textareaElementId); const targetTextarea = document.getElementById(textareaElementId);
if (targetTextarea.setRangeText) { if (targetTextarea.setRangeText) {
targetTextarea.setRangeText("\n[upload-"+file.name+"]\n",targetTextarea.selectionStart,targetTextarea.selectionEnd,"end"); targetTextarea.setRangeText("\n[upload-" + file.name + "]\n", targetTextarea.selectionStart, targetTextarea.selectionEnd, "end");
} }
done(); done();
}, },