diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-06-08 11:10:46 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-06-08 11:10:46 +0200 |
commit | 74ab68872f3cd14f57e1e44882766cdcc19a0fb4 (patch) | |
tree | 6efc49bd28893a5e683f07eb24a2430308d6b6e0 /apps/files/js | |
parent | bbfc028169ea453fb561d4e5ffe73f90bd1139a9 (diff) | |
download | nextcloud-server-74ab68872f3cd14f57e1e44882766cdcc19a0fb4.tar.gz nextcloud-server-74ab68872f3cd14f57e1e44882766cdcc19a0fb4.zip |
Remove duplicated code
"disableDropState" was set as the event handler in 8d4e5747f386a0, but
the duplicated code was accidentally added back in 786e858d23c4a4.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/file-upload.js | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 824f6a1fd56..dfa460c914a 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -1164,12 +1164,7 @@ OC.Uploader.prototype = _.extend({ filerow.find('.thumbnail').addClass('icon-filetype-folder-drag-accept'); } }); - fileupload.on('fileuploaddragleave fileuploaddrop', function (){ - $('#app-content').removeClass('file-drag'); - $('.dropping-to-dir').removeClass('dropping-to-dir'); - $('.dir-drop').removeClass('dir-drop'); - $('.icon-filetype-folder-drag-accept').removeClass('icon-filetype-folder-drag-accept'); - }); + fileupload.on('fileuploaddragleave fileuploaddrop', disableDropState); fileupload.on('fileuploadchunksend', function(e, data) { // modify the request to adjust it to our own chunking |