diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-09-20 14:58:52 +0200 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-07 11:14:11 +0200 |
commit | 0683372200aaf989b596e34a9864cd0c6dd980a8 (patch) | |
tree | 3a1b745758f561e07e52adbc7cfd370a56a9b7dd /apps/files/js/fileactions.js | |
parent | 5a174eba8304680db8604592089804ab64e77258 (diff) | |
download | nextcloud-server-0683372200aaf989b596e34a9864cd0c6dd980a8.tar.gz nextcloud-server-0683372200aaf989b596e34a9864cd0c6dd980a8.zip |
canceling individual uploads is currently impossible because there is no placeholder
Diffstat (limited to 'apps/files/js/fileactions.js')
-rw-r--r-- | apps/files/js/fileactions.js | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 67d3d5ead8d..e14e52eb6ca 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -177,20 +177,7 @@ $(document).ready(function () { FileActions.register('all', 'Delete', OC.PERMISSION_DELETE, function () { return OC.imagePath('core', 'actions/delete'); }, function (filename) { - if (OC.Upload.cancelUpload($('#dir').val(), filename)) { - if (filename.substr) { - filename = [filename]; - } - $.each(filename, function (index, file) { - var filename = $('tr').filterAttr('data-file', file); - filename.hide(); - filename.find('input[type="checkbox"]').removeAttr('checked'); - filename.removeClass('selected'); - }); - procesSelection(); - } else { - FileList.do_delete(filename); - } + FileList.do_delete(filename); $('.tipsy').remove(); }); |