Remove duplicated code
"disableDropState" was set as the event handler in8d4e5747f3
, but the duplicated code was accidentally added back in786e858d23
. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
parent
bbfc028169
commit
74ab68872f
1 changed files with 1 additions and 6 deletions
|
@ -1164,12 +1164,7 @@ OC.Uploader.prototype = _.extend({
|
||||||
filerow.find('.thumbnail').addClass('icon-filetype-folder-drag-accept');
|
filerow.find('.thumbnail').addClass('icon-filetype-folder-drag-accept');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
fileupload.on('fileuploaddragleave fileuploaddrop', function (){
|
fileupload.on('fileuploaddragleave fileuploaddrop', disableDropState);
|
||||||
$('#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('fileuploadchunksend', function(e, data) {
|
fileupload.on('fileuploadchunksend', function(e, data) {
|
||||||
// modify the request to adjust it to our own chunking
|
// modify the request to adjust it to our own chunking
|
||||||
|
|
Loading…
Reference in a new issue