Browse Source

Fix #956: Correct initial preview file thumb deletions

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

+ 2 - 1
CHANGE.md

@@ -3,8 +3,9 @@ Change Log: `bootstrap-fileinput`
 
 ## version 4.4.0 (_under development_)
 
-**Date:** 02-May-2017
+**Date:** 03-May-2017
 
+- (bug #956): Correct initial preview file thumb deletions.
 - (bug #955): Remove unnecessary `sourceMappingUrl` in `purify.min.js`.
 - (enh #954): Add minified theme assets.
 - (enh #952): Auto orientation of image based on EXIF data (new property `autoOrientImage`).

+ 0 - 1
js/fileinput.js

@@ -2266,7 +2266,6 @@
                     success: function (data, textStatus, jqXHR) {
                         var n, cap;
                         if ($h.isEmpty(data) || $h.isEmpty(data.error)) {
-                            self.previewCache.init();
                             index = parseInt(($frame.attr('data-fileindex')).replace('init_', ''));
                             self.previewCache.unset(index);
                             n = self.previewCache.count();

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