Browse Source

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

Kartik Visweswaran 8 years ago
parent
commit
6a94917f42
3 changed files with 4 additions and 3 deletions
  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');
                     }
                 }
             });

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