Explorar el Código

Fix #1413: Correct `getFileStack` and `getFileList` methods

Kartik Visweswaran hace 6 años
padre
commit
c3ea74dd25
Se han modificado 3 ficheros con 3 adiciones y 2 borrados
  1. 1 0
      CHANGE.md
  2. 2 2
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 0
CHANGE.md

@@ -5,6 +5,7 @@ Change Log: `bootstrap-fileinput`
 
 **Date:** _under development_
 
+- (bug #1413): Correct `getFileStack` and `getFileList` methods.
 
 ## version 5.0.3
 

+ 2 - 2
js/fileinput.js

@@ -4702,10 +4702,10 @@
             return self.$element;
         },
         getFileStack: function () {
-            return this.files.stack;
+            return this.fileManager.stack;
         },
         getFileList: function () {
-            return this.files.list();
+            return this.fileManager.list();
         },
         getFilesCount: function () {
             var self = this, len = self.isAjaxUpload ? self.fileManager.count() : self._inputFileCount();

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
js/fileinput.min.js


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio