From ed79bef51b726899cd200cd306871f92d6d08190 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 20 Jul 2018 16:44:43 +0200 Subject: prevent double file uploads when dropping files into jot (cherry picked from commit f6de91bf0fe1abf41d9b15a553ba378e42a956d1) --- view/tpl/jot-header.tpl | 1 + 1 file changed, 1 insertion(+) (limited to 'view') diff --git a/view/tpl/jot-header.tpl b/view/tpl/jot-header.tpl index cd8e3e97c..dd64c3454 100755 --- a/view/tpl/jot-header.tpl +++ b/view/tpl/jot-header.tpl @@ -97,6 +97,7 @@ var activeCommentText = ''; $('#invisible-comment-upload').fileupload({ url: 'wall_attach/{{$nickname}}', dataType: 'json', + dropZone: $(), maxChunkSize: 4 * 1024 * 1024, add: function(e,data) { -- cgit v1.2.3