summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-06-08 11:10:46 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-06-08 11:10:46 +0200
commit74ab68872f3cd14f57e1e44882766cdcc19a0fb4 (patch)
tree6efc49bd28893a5e683f07eb24a2430308d6b6e0 /apps/files/js
parentbbfc028169ea453fb561d4e5ffe73f90bd1139a9 (diff)
downloadnextcloud-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.js7
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