Skip to content
Snippets Groups Projects
Commit eea02cee authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge branch 'fix_3728_with_file_exists_dialog' of github.com:owncloud/core...

Merge branch 'fix_3728_with_file_exists_dialog' of github.com:owncloud/core into fix_3728_with_file_exists_dialog

Conflicts:
	apps/files/js/file-upload.js
parents c30c153e 89ed0007
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ function supportAjaxUploadWithProgress() { ...@@ -37,7 +37,7 @@ function supportAjaxUploadWithProgress() {
/** /**
* keeps track of uploads in progress and implements callbacks for the conflicts dialog * keeps track of uploads in progress and implements callbacks for the conflicts dialog
* @type OC.Upload * @type {OC.Upload}
*/ */
OC.Upload = { OC.Upload = {
_uploads: [], _uploads: [],
...@@ -45,9 +45,9 @@ OC.Upload = { ...@@ -45,9 +45,9 @@ OC.Upload = {
* cancels a single upload, * cancels a single upload,
* @deprecated because it was only used when a file currently beeing uploaded was deleted. Now they are added after * @deprecated because it was only used when a file currently beeing uploaded was deleted. Now they are added after
* they have been uploaded. * they have been uploaded.
* @param string dir * @param {string} dir
* @param string filename * @param {string} filename
* @returns unresolved * @returns {unresolved}
*/ */
cancelUpload:function(dir, filename) { cancelUpload:function(dir, filename) {
var self = this; var self = this;
...@@ -63,7 +63,7 @@ OC.Upload = { ...@@ -63,7 +63,7 @@ OC.Upload = {
}, },
/** /**
* deletes the jqHXR object from a data selection * deletes the jqHXR object from a data selection
* @param data data * @param {object} data
*/ */
deleteUpload:function(data) { deleteUpload:function(data) {
delete data.jqXHR; delete data.jqXHR;
...@@ -86,7 +86,7 @@ OC.Upload = { ...@@ -86,7 +86,7 @@ OC.Upload = {
/** /**
* Checks the currently known uploads. * Checks the currently known uploads.
* returns true if any hxr has the state 'pending' * returns true if any hxr has the state 'pending'
* @returns Boolean * @returns {boolean}
*/ */
isProcessing:function(){ isProcessing:function(){
var count = 0; var count = 0;
...@@ -100,7 +100,7 @@ OC.Upload = { ...@@ -100,7 +100,7 @@ OC.Upload = {
}, },
/** /**
* callback for the conflicts dialog * callback for the conflicts dialog
* @param data * @param {object} data
*/ */
onCancel:function(data) { onCancel:function(data) {
this.cancelUploads(); this.cancelUploads();
...@@ -108,7 +108,7 @@ OC.Upload = { ...@@ -108,7 +108,7 @@ OC.Upload = {
/** /**
* callback for the conflicts dialog * callback for the conflicts dialog
* calls onSkip, onReplace or onAutorename for each conflict * calls onSkip, onReplace or onAutorename for each conflict
* @param conflicts list of conflict elements * @param {object} conflicts - list of conflict elements
*/ */
onContinue:function(conflicts) { onContinue:function(conflicts) {
var self = this; var self = this;
...@@ -132,7 +132,7 @@ OC.Upload = { ...@@ -132,7 +132,7 @@ OC.Upload = {
}, },
/** /**
* handle skipping an upload * handle skipping an upload
* @param data data * @param {object} data
*/ */
onSkip:function(data){ onSkip:function(data){
this.log('skip', null, data); this.log('skip', null, data);
...@@ -140,7 +140,7 @@ OC.Upload = { ...@@ -140,7 +140,7 @@ OC.Upload = {
}, },
/** /**
* handle replacing a file on the server with an uploaded file * handle replacing a file on the server with an uploaded file
* @param data data * @param {object} data
*/ */
onReplace:function(data){ onReplace:function(data){
this.log('replace', null, data); this.log('replace', null, data);
...@@ -149,7 +149,7 @@ OC.Upload = { ...@@ -149,7 +149,7 @@ OC.Upload = {
}, },
/** /**
* handle uploading a file and letting the server decide a new name * handle uploading a file and letting the server decide a new name
* @param data data * @param {object} data
*/ */
onAutorename:function(data){ onAutorename:function(data){
this.log('autorename', null, data); this.log('autorename', null, data);
...@@ -170,13 +170,13 @@ OC.Upload = { ...@@ -170,13 +170,13 @@ OC.Upload = {
/** /**
* TODO checks the list of existing files prior to uploading and shows a simple dialog to choose * TODO checks the list of existing files prior to uploading and shows a simple dialog to choose
* skip all, replace all or choose which files to keep * skip all, replace all or choose which files to keep
* @param array selection of files to upload * @param {array} selection of files to upload
* @param callbacks to call: * @param {object} callbacks - object with several callback methods
* onNoConflicts, * @param {function} callbacks.onNoConflicts
* onSkipConflicts, * @param {function} callbacks.onSkipConflicts
* onReplaceConflicts, * @param {function} callbacks.onReplaceConflicts
* onChooseConflicts, * @param {function} callbacks.onChooseConflicts
* onCancel * @param {function} callbacks.onCancel
*/ */
checkExistingFiles: function (selection, callbacks){ checkExistingFiles: function (selection, callbacks){
// TODO check filelist before uploading and show dialog on conflicts, use callbacks // TODO check filelist before uploading and show dialog on conflicts, use callbacks
...@@ -205,9 +205,9 @@ $(document).ready(function() { ...@@ -205,9 +205,9 @@ $(document).ready(function() {
* - when only new -> remember as single replace action * - when only new -> remember as single replace action
* - when both -> remember as single autorename action * - when both -> remember as single autorename action
* - start uploading selection * - start uploading selection
* @param {type} e * @param {object} e
* @param {type} data * @param {object} data
* @returns {Boolean} * @returns {boolean}
*/ */
add: function(e, data) { add: function(e, data) {
OC.Upload.log('add', e, data); OC.Upload.log('add', e, data);
...@@ -300,7 +300,7 @@ $(document).ready(function() { ...@@ -300,7 +300,7 @@ $(document).ready(function() {
}, },
/** /**
* called after the first add, does NOT have the data param * called after the first add, does NOT have the data param
* @param e * @param {object} e
*/ */
start: function(e) { start: function(e) {
OC.Upload.log('start', e, null); OC.Upload.log('start', e, null);
...@@ -334,8 +334,8 @@ $(document).ready(function() { ...@@ -334,8 +334,8 @@ $(document).ready(function() {
}, },
/** /**
* called for every successful upload * called for every successful upload
* @param e * @param {object} e
* @param data * @param {object} data
*/ */
done:function(e, data) { done:function(e, data) {
OC.Upload.log('done', e, data); OC.Upload.log('done', e, data);
...@@ -372,8 +372,8 @@ $(document).ready(function() { ...@@ -372,8 +372,8 @@ $(document).ready(function() {
}, },
/** /**
* called after last upload * called after last upload
* @param e * @param {object} e
* @param data * @param {object} data
*/ */
stop: function(e, data) { stop: function(e, data) {
OC.Upload.log('stop', e, data); OC.Upload.log('stop', e, data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment