Browse Source

Fix #1385: Correct resize image error

Kartik Visweswaran 6 years ago
parent
commit
a391566263
3 changed files with 3 additions and 2 deletions
  1. 2 1
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 2 - 1
CHANGE.md

@@ -5,7 +5,8 @@ Change Log: `bootstrap-fileinput`
 
 **Date:** _under development_
 
-- (bug #1383):  Validate for undefined zoom data.
+- (bug #1385): Correct resize image error.
+- (bug #1383): Validate for undefined zoom data.
     
 ## version 5.0.1
 

+ 1 - 1
js/fileinput.js

@@ -4174,7 +4174,7 @@
                 }
                 self._setPreviewError($thumb);
             };
-            file = self.getFile(id);
+            file = self.fileManager.getFile(id);
             params = {id: pid, 'index': ind, fileId: id};
             evParams = [id, pid, ind];
             if (!file || !isValidImage || (width <= maxWidth && height <= maxHeight)) {

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff