瀏覽代碼

Fix #1594: Correct `removeThumb` validation for in readFiles `throwError` method

Kartik Visweswaran 4 年之前
父節點
當前提交
5b5e213a50
共有 3 個文件被更改,包括 2 次插入4 次删除
  1. 1 1
      CHANGE.md
  2. 1 3
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 1
CHANGE.md

@@ -5,11 +5,11 @@ Change Log: `bootstrap-fileinput`
 
 
 **Date**: _under development_
 **Date**: _under development_
 
 
+- (bug #1594): Correct `removeThumb` validation for in readFiles `throwError` method.
 - (enh #1593): Correct resumable test upload validation.
 - (enh #1593): Correct resumable test upload validation.
 - (enh #1591): Parse arguments as an array via vanilla JS.
 - (enh #1591): Parse arguments as an array via vanilla JS.
 - (enh #1589): Correct msgPlaceholder for de & uz translations.
 - (enh #1589): Correct msgPlaceholder for de & uz translations.
 - (enh #1588): Enhance duplicate validation for recently uploaded thumbs.
 - (enh #1588): Enhance duplicate validation for recently uploaded thumbs.
-
 ## version 5.1.1
 ## version 5.1.1
 
 
 **Date:** 20-Jun-2020
 **Date:** 20-Jun-2020

+ 1 - 3
js/fileinput.js

@@ -5168,9 +5168,7 @@
                     var $thumb, p1 = $.extend(true, {}, self._getOutData(null, {}, {}, files),
                     var $thumb, p1 = $.extend(true, {}, self._getOutData(null, {}, {}, files),
                         {id: previewId, index: index, fileId: fileId}),
                         {id: previewId, index: index, fileId: fileId}),
                         p2 = {id: previewId, index: index, fileId: fileId, file: file, files: files};
                         p2 = {id: previewId, index: index, fileId: fileId, file: file, files: files};
-                    if (!removeThumb) {
-                        self._previewDefault(file, true);
-                    }
+                    self._previewDefault(file, true);
                     $thumb = self._getFrame(previewId, true);
                     $thumb = self._getFrame(previewId, true);
                     if (self.isAjaxUpload) {
                     if (self.isAjaxUpload) {
                         setTimeout(function () {
                         setTimeout(function () {

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