Skip to content

Commit

Permalink
Fix #1758: Correct bootstrap module parser
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Sep 21, 2021
1 parent 5b16acb commit 93490f5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Loading

0 comments on commit 93490f5

Please sign in to comment.