summaryrefslogtreecommitdiffstats
path: root/apps
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-12 15:25:50 +0200
commit981b757099944492bd517b8315701bc718bf5b0e (patch)
treebc89263b2af96008a728615ba72cdc869a9b874b /apps
parent59a27ceb13b1b6d0e2ba75f921e16141a7c28623 (diff)
downloadnextcloud-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.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