]> git.mxchange.org Git - friendica.git/commitdiff
add timeout before remove images from dropzone
authorJakobus Schürz <jakobus.schuerz@schuerz.at>
Tue, 14 Mar 2023 12:55:15 +0000 (13:55 +0100)
committerJakobus Schürz <jakobus.schuerz@schuerz.at>
Sun, 19 Mar 2023 17:52:45 +0000 (18:52 +0100)
view/templates/item/compose.tpl
view/theme/frio/templates/comment_item.tpl

index 689357ca1244ebc6f73d1179272b5c6033d25ed3..581e8d29fd71563e426a4d951c3dfe087d138b54 100644 (file)
                                // 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);
                        });
                },
        });
index d224db559b67372f607c68f2fffc5e6706319d12..127612b29c885499ac8474acc1fdb9349165777d 100644 (file)
@@ -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);
                        });
                },
        });