浏览代码

Fix #995: Correct and fix image load jquery event triggering for browser cache scenarios

Kartik Visweswaran 8 年之前
父节点
当前提交
6a94917f42
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 2 1
      CHANGE.md
  2. 2 2
      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.2 (_under development_)
 
-**Date:** 30-May-2017
+**Date:** 06-Jun-2017
 
+- (bug #995): Correct and fix image load jquery event triggering for browser cache scenarios.
 - (enh #987): Zoom preview arrows orientation for RTL.
 - (enh #986): Image width parsing and styling enhancements.
 - (enh #981): Update Hungarian Translations.

+ 2 - 2
js/fileinput.js

@@ -2941,10 +2941,10 @@
                 self._raise('fileimageloaderror', [previewId]);
             }).each(function () {
                 if (this.complete) {
-                    $(this).load();
+                    $(this).trigger('load');
                 } else {
                     if (this.error) {
-                        $(this).error();
+                        $(this).trigger('error');
                     }
                 }
             });

文件差异内容过多而无法显示
+ 0 - 0
js/fileinput.min.js


部分文件因为文件数量过多而无法显示