Explorar el Código

Fix #1758: Correct bootstrap module parser

Kartik Visweswaran hace 3 años
padre
commit
93490f55f0
Se han modificado 3 ficheros con 3 adiciones y 2 borrados
  1. 1 0
      CHANGE.md
  2. 2 2
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 0
CHANGE.md

@@ -5,6 +5,7 @@ Change Log: `bootstrap-fileinput`
 
 **Date**: _under development_
 
+- (bug #1758): Correct bootstrap module parser.
 - (enh #1756): Replace `getLoadingUrl` to a new `$h.getZoomPlaceholder` method.
 
 ## version 5.2.5

+ 2 - 2
js/fileinput.js

@@ -24,8 +24,8 @@
     $.fn.fileinputThemes = {};
 
     if (!$.fn.fileinputBsVersion) {
-        var v = (bootstrap && bootstrap.Alert && bootstrap.Alert.VERSION) || (Alert && Alert.VERSION) || '3.x.x';
-        $.fn.fileinputBsVersion = v;
+        $.fn.fileinputBsVersion = (window.bootstrap && window.bootstrap.Alert && window.bootstrap.Alert.VERSION) ||
+            (window.Alert && window.Alert.VERSION) || '3.x.x';
     }
 
     String.prototype.setTokens = function (replacePairs) {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 0
js/fileinput.min.js


Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio