Просмотр исходного кода

Fix #120: Correct multiple iterations of upload for async batch uploads

Kartik Visweswaran 10 лет назад
Родитель
Сommit
7fbdd36654
3 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 2 - 1
CHANGE.md

@@ -1,6 +1,6 @@
 version 4.1.5
 version 4.1.5
 =============
 =============
-**Date:** 07-Jan-2015
+**Date:** 09-Jan-2015
 
 
 1. (bug #100, #101): Set right params for error thrown during reading of files.
 1. (bug #100, #101): Set right params for error thrown during reading of files.
 2. (bug #104): Fix formdata not defined.
 2. (bug #104): Fix formdata not defined.
@@ -13,6 +13,7 @@ version 4.1.5
 9. (enh #115): Autosize file caption responsively on window resize.
 9. (enh #115): Autosize file caption responsively on window resize.
 10. (enh #116): Hide remove and upload buttons until unless file(s) are selected.
 10. (enh #116): Hide remove and upload buttons until unless file(s) are selected.
 11. (enh #119): Enhance caption to include ellipsis for long file names
 11. (enh #119): Enhance caption to include ellipsis for long file names
+12. (bug #120): Correct multiple iterations of upload for async batch uploads.
 
 
 version 4.1.4
 version 4.1.4
 =============
 =============

+ 1 - 1
js/fileinput.js

@@ -400,7 +400,7 @@
                     self.raise('filebatchpreupload', [outData]);
                     self.raise('filebatchpreupload', [outData]);
                     for (i = 0; i < len; i++) {
                     for (i = 0; i < len; i++) {
                         if (self.filestack[i] !== undefined) {
                         if (self.filestack[i] !== undefined) {
-                            self.upload(i, self.getFileStack(), true);
+                            self.upload(i, self.filestack, true);
                         }
                         }
                     }
                     }
                     setTimeout(function() {
                     setTimeout(function() {

Разница между файлами не показана из-за своего большого размера
+ 0 - 0
js/fileinput.min.js


Некоторые файлы не были показаны из-за большого количества измененных файлов