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/file-upload.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/file-upload.js')
-rw-r--r-- | apps/files/js/file-upload.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index b52221ac1fc..f1ef485fc3d 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -42,26 +42,6 @@ function supportAjaxUploadWithProgress() { OC.Upload = { _uploads: [], /** - * cancels a single upload, - * @deprecated because it was only used when a file currently beeing uploaded was deleted. Now they are added after - * they have been uploaded. - * @param {string} dir - * @param {string} filename - * @returns {unresolved} - */ - cancelUpload:function(dir, filename) { - var self = this; - var deleted = false; - //FIXME _selections - jQuery.each(this._uploads, function(i, jqXHR) { - if (selection.dir === dir && selection.uploads[filename]) { - deleted = self.deleteSelectionUpload(selection, filename); - return false; // end searching through selections - } - }); - return deleted; - }, - /** * deletes the jqHXR object from a data selection * @param {object} data */ |