Explorar o código

Fix #956: Correct initial preview file thumb deletions

Kartik Visweswaran %!s(int64=8) %!d(string=hai) anos
pai
achega
4026280e56
Modificáronse 3 ficheiros con 2 adicións e 2 borrados
  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_)
 ## 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`.
 - (bug #955): Remove unnecessary `sourceMappingUrl` in `purify.min.js`.
 - (enh #954): Add minified theme assets.
 - (enh #954): Add minified theme assets.
 - (enh #952): Auto orientation of image based on EXIF data (new property `autoOrientImage`).
 - (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) {
                     success: function (data, textStatus, jqXHR) {
                         var n, cap;
                         var n, cap;
                         if ($h.isEmpty(data) || $h.isEmpty(data.error)) {
                         if ($h.isEmpty(data) || $h.isEmpty(data.error)) {
-                            self.previewCache.init();
                             index = parseInt(($frame.attr('data-fileindex')).replace('init_', ''));
                             index = parseInt(($frame.attr('data-fileindex')).replace('init_', ''));
                             self.previewCache.unset(index);
                             self.previewCache.unset(index);
                             n = self.previewCache.count();
                             n = self.previewCache.count();

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 0 - 0
js/fileinput.min.js


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio