summaryrefslogtreecommitdiffstats
path: root/apps/files/js/jquery.fileupload.js
diff options
context:
space:
mode:
authorVincent Chan <plus.vincchan@gmail.com>2016-06-14 09:58:03 +0200
committerVincent Chan <plus.vincchan@gmail.com>2016-06-14 09:58:03 +0200
commit864c3a8fbbe221d7ded83093a2e7c5bde097ef8c (patch)
tree0189c0b244f365de5d1ded31b0d805c77dde0ee0 /apps/files/js/jquery.fileupload.js
parent433cea30c3ffa7b314ad1f857a7ed2cf48f241e8 (diff)
downloadnextcloud-server-864c3a8fbbe221d7ded83093a2e7c5bde097ef8c.tar.gz
nextcloud-server-864c3a8fbbe221d7ded83093a2e7c5bde097ef8c.zip
fixes direct upload to folder
Diffstat (limited to 'apps/files/js/jquery.fileupload.js')
-rw-r--r--apps/files/js/jquery.fileupload.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files/js/jquery.fileupload.js b/apps/files/js/jquery.fileupload.js
index 622161ede97..e9033437001 100644
--- a/apps/files/js/jquery.fileupload.js
+++ b/apps/files/js/jquery.fileupload.js
@@ -1267,11 +1267,7 @@
e.preventDefault();
this._getDroppedFiles(dataTransfer).always(function (files) {
data.files = files;
- if (that._trigger(
- 'drop',
- $.Event('drop', {delegatedEvent: e}),
- data
- ) !== false) {
+ if (that._trigger('drop', e, data) !== false) {
that._onAdd(e, data);
}
});