From: Jakobus Schürz Date: Tue, 14 Mar 2023 12:55:15 +0000 (+0100) Subject: add timeout before remove images from dropzone X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=64066349aa8da5e86223c6bd33af91a613f8b5b1;p=friendica.git add timeout before remove images from dropzone --- diff --git a/view/templates/item/compose.tpl b/view/templates/item/compose.tpl index 689357ca12..581e8d29fd 100644 --- a/view/templates/item/compose.tpl +++ b/view/templates/item/compose.tpl @@ -123,7 +123,9 @@ // Image can be seen in posting-preview // We need preview to get optical feedback about upload-progress. // you see success, when the bb-code link for image is inserted - this.removeFile(file); + setTimeout(function(){ + dropzoneCompose.removeFile(file); + },5000); }); }, }); diff --git a/view/theme/frio/templates/comment_item.tpl b/view/theme/frio/templates/comment_item.tpl index d224db559b..127612b29c 100644 --- a/view/theme/frio/templates/comment_item.tpl +++ b/view/theme/frio/templates/comment_item.tpl @@ -93,7 +93,9 @@ // Image can be seen in posting-preview // We need preview to get optical feedback about upload-progress. // you see success, when the bb-code link for image is inserted - this.removeFile(file); + setTimeout(function(){ + dropzone{{$id}}.removeFile(file); + },5000); }); }, });