Przeglądaj źródła

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

Kartik Visweswaran 6 lat temu
rodzic
commit
c3ea74dd25
3 zmienionych plików z 3 dodań i 2 usunięć
  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();

Plik diff jest za duży
+ 0 - 0
js/fileinput.min.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików