Browse Source

Fix #1385: Correct resize image error

Kartik Visweswaran 6 năm trước cách đây
mục cha
commit
a391566263
3 tập tin đã thay đổi với 3 bổ sung2 xóa
  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)) {

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
js/fileinput.min.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác