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
59a27ceb13
commit
981b757099
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue