mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
Fixes #13082
removed $.trim because it removes \n from return value of media/photo/upload
This commit is contained in:
parent
148f12580b
commit
ad127f4739
1 changed files with 2 additions and 2 deletions
|
@ -26,10 +26,10 @@ var DzFactory = function (max_imagesize) {
|
|||
const targetTextarea = document.getElementById(textareaElementId);
|
||||
if (targetTextarea.setRangeText) {
|
||||
//if setRangeText function is supported by current browser
|
||||
targetTextarea.setRangeText(' ' + $.trim(serverResponse) + ' ');
|
||||
targetTextarea.setRangeText(' ' + serverResponse + ' ');
|
||||
} else {
|
||||
targetTextarea.focus();
|
||||
document.execCommand('insertText', false /*no UI*/, '\n' + $.trim(serverResponse) + '\n');
|
||||
document.execCommand('insertText', false /*no UI*/, '\n' + serverResponse + '\n');
|
||||
}
|
||||
});
|
||||
this.on('complete', function(file) {
|
||||
|
|
Loading…
Reference in a new issue