diff options
author | Vincent Chan <plus.vincchan@gmail.com> | 2016-06-14 11:51:03 +0200 |
---|---|---|
committer | Vincent Chan <plus.vincchan@gmail.com> | 2016-06-14 11:51:03 +0200 |
commit | 937d21ed29f29f424aaed7abb643a210ccb2453b (patch) | |
tree | a611f879900673978f120ac625582485819ebd1d /apps/files/js/jquery.fileupload.js | |
parent | 864c3a8fbbe221d7ded83093a2e7c5bde097ef8c (diff) | |
download | nextcloud-server-937d21ed29f29f424aaed7abb643a210ccb2453b.tar.gz nextcloud-server-937d21ed29f29f424aaed7abb643a210ccb2453b.zip |
properly fix folder upload to use delegatedEvent
Diffstat (limited to 'apps/files/js/jquery.fileupload.js')
-rw-r--r-- | apps/files/js/jquery.fileupload.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/jquery.fileupload.js b/apps/files/js/jquery.fileupload.js index e9033437001..622161ede97 100644 --- a/apps/files/js/jquery.fileupload.js +++ b/apps/files/js/jquery.fileupload.js @@ -1267,7 +1267,11 @@ e.preventDefault(); this._getDroppedFiles(dataTransfer).always(function (files) { data.files = files; - if (that._trigger('drop', e, data) !== false) { + if (that._trigger( + 'drop', + $.Event('drop', {delegatedEvent: e}), + data + ) !== false) { that._onAdd(e, data); } }); |