Ver Fonte

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

Kartik Visweswaran há 8 anos atrás
pai
commit
6a94917f42
3 ficheiros alterados com 4 adições e 3 exclusões
  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');
                     }
                 }
             });

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
js/fileinput.min.js


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff