فهرست منبع

Fix #576: Correct previewCache initialization

Kartik Visweswaran 9 سال پیش
والد
کامیت
e3c9b61fdf
3فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 2 1
      CHANGE.md
  2. 1 1
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 2 - 1
CHANGE.md

@@ -3,7 +3,7 @@ Change Log: `bootstrap-fileinput`
 
 
 ## version 4.3.1
 ## version 4.3.1
 
 
-**Date:** 27-Feb-2016
+**Date:** 28-Feb-2016
 
 
 1. (enh #514): Set default value for `removeFromPreviewOnError` to `false`.
 1. (enh #514): Set default value for `removeFromPreviewOnError` to `false`.
 2. (enh #554): Update documentation and demos to include `webkitdirectory` for upload.
 2. (enh #554): Update documentation and demos to include `webkitdirectory` for upload.
@@ -18,6 +18,7 @@ Change Log: `bootstrap-fileinput`
 10. (enh #573): Update package.json to include `peerDependencies`.
 10. (enh #573): Update package.json to include `peerDependencies`.
 11. (enh #574): Change naming convention for private / internal methods. Prepend internal plugin methods with underscore `_`.
 11. (enh #574): Change naming convention for private / internal methods. Prepend internal plugin methods with underscore `_`.
 12. (enh #575): Implement public method chaining and update docs for methods.
 12. (enh #575): Implement public method chaining and update docs for methods.
+13. (bug #576): Correct previewCache initialization.
 
 
 ## version 4.3.0
 ## version 4.3.0
 
 

+ 1 - 1
js/fileinput.js

@@ -619,7 +619,7 @@
             self.fileActionSettings = $.extend(true, defaultFileActionSettings, options.fileActionSettings);
             self.fileActionSettings = $.extend(true, defaultFileActionSettings, options.fileActionSettings);
             self.previewInitId = "preview-" + uniqId();
             self.previewInitId = "preview-" + uniqId();
             self.id = self.$element.attr('id');
             self.id = self.$element.attr('id');
-            previewCache._init(self);
+            previewCache.init(self);
             self._initPreview(true);
             self._initPreview(true);
             self._initPreviewDeletes();
             self._initPreviewDeletes();
             self.options = options;
             self.options = options;

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
js/fileinput.min.js


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است