Mercurial > hg > orthanc
comparison OrthancExplorer/libs/jquery-file-upload/js/jquery.fileupload.js @ 3973:d86bddb50972
fix spelling errors according to debian
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 22 May 2020 18:40:35 +0200 |
parents | 4bc019d2f969 |
children |
comparison
equal
deleted
inserted
replaced
3972:7f8b30416d50 | 3973:d86bddb50972 |
---|---|
124 }, | 124 }, |
125 | 125 |
126 // The add callback is invoked as soon as files are added to the fileupload | 126 // The add callback is invoked as soon as files are added to the fileupload |
127 // widget (via file input selection, drag & drop, paste or add API call). | 127 // widget (via file input selection, drag & drop, paste or add API call). |
128 // If the singleFileUploads option is enabled, this callback will be | 128 // If the singleFileUploads option is enabled, this callback will be |
129 // called once for each file in the selection for XHR file uplaods, else | 129 // called once for each file in the selection for XHR file uploads, else |
130 // once for each file selection. | 130 // once for each file selection. |
131 // The upload starts when the submit method is invoked on the data parameter. | 131 // The upload starts when the submit method is invoked on the data parameter. |
132 // The data object contains a files property holding the added files | 132 // The data object contains a files property holding the added files |
133 // and allows to override plugin options as well as define ajax settings. | 133 // and allows one to override plugin options as well as define ajax settings. |
134 // Listeners for this callback can also be bound the following way: | 134 // Listeners for this callback can also be bound the following way: |
135 // .bind('fileuploadadd', func); | 135 // .bind('fileuploadadd', func); |
136 // data.submit() returns a Promise object and allows to attach additional | 136 // data.submit() returns a Promise object and allows one to attach additional |
137 // handlers using jQuery's Deferred callbacks: | 137 // handlers using jQuery's Deferred callbacks: |
138 // data.submit().done(func).fail(func).always(func); | 138 // data.submit().done(func).fail(func).always(func); |
139 add: function (e, data) { | 139 add: function (e, data) { |
140 data.submit(); | 140 data.submit(); |
141 }, | 141 }, |
753 }, | 753 }, |
754 | 754 |
755 _replaceFileInput: function (input) { | 755 _replaceFileInput: function (input) { |
756 var inputClone = input.clone(true); | 756 var inputClone = input.clone(true); |
757 $('<form></form>').append(inputClone)[0].reset(); | 757 $('<form></form>').append(inputClone)[0].reset(); |
758 // Detaching allows to insert the fileInput on another form | 758 // Detaching allows one to insert the fileInput on another form |
759 // without loosing the file input value: | 759 // without loosing the file input value: |
760 input.after(inputClone).detach(); | 760 input.after(inputClone).detach(); |
761 // Avoid memory leaks with the detached file input: | 761 // Avoid memory leaks with the detached file input: |
762 $.cleanData(input.unbind('remove')); | 762 $.cleanData(input.unbind('remove')); |
763 // Replace the original file input element in the fileInput | 763 // Replace the original file input element in the fileInput |