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-12 15:25:50 +0200 |
commit | 981b757099944492bd517b8315701bc718bf5b0e (patch) | |
tree | bc89263b2af96008a728615ba72cdc869a9b874b /apps | |
parent | 59a27ceb13b1b6d0e2ba75f921e16141a7c28623 (diff) | |
download | nextcloud-server-981b757099944492bd517b8315701bc718bf5b0e.tar.gz nextcloud-server-981b757099944492bd517b8315701bc718bf5b0e.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')
-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 |