Skip to content

Commit

Permalink
Updates to release v5.2.5 fix #1755
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Sep 19, 2021
1 parent b5ca4ee commit b2526e4
Show file tree
Hide file tree
Showing 83 changed files with 271 additions and 264 deletions.
7 changes: 7 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Change Log: `bootstrap-fileinput`
=================================

## version 5.2.5

**Date**: 19-Sep-2021

- (enh #1755): Simplify NPM module handling.


## version 5.2.4

**Date**: 18-Sep-2021
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,34 +93,34 @@ Step 1: Load the following assets on your page in the order mentioned.
<!-- link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" crossorigin="anonymous" -->

<!-- the fileinput plugin styling CSS file -->
<link href="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].4/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />
<link href="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].5/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />

<!-- if using RTL (Right-To-Left) orientation, load the RTL CSS file after fileinput.css by uncommenting below -->
<!-- link href="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].4/css/fileinput-rtl.min.css" media="all" rel="stylesheet" type="text/css" /-->
<!-- link href="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].5/css/fileinput-rtl.min.css" media="all" rel="stylesheet" type="text/css" /-->

<!-- the jQuery Library -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" crossorigin="anonymous"></script>

<!-- piexif.min.js is needed for auto orienting image files OR when restoring exif data in resized images and when you
wish to resize images before upload. This must be loaded before fileinput.min.js -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].4/js/plugins/piexif.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].5/js/plugins/piexif.min.js" type="text/javascript"></script>

<!-- sortable.min.js is only needed if you wish to sort / rearrange files in initial preview.
This must be loaded before fileinput.min.js -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].4/js/plugins/sortable.min.js" type="text/javascript"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].5/js/plugins/sortable.min.js" type="text/javascript"></script>

<!-- bootstrap.bundle.min.js below is needed if you wish to zoom and preview file content in a detail modal
dialog. bootstrap 5.x or 4.x is supported. You can also use the bootstrap js 3.3.x versions. -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script>

<!-- the main fileinput plugin script JS file -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].4/js/fileinput.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].5/js/fileinput.min.js"></script>

<!-- following theme script is needed to use the Font Awesome 5.x theme (`fas`). Uncomment if needed. -->
<!-- script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].4/themes/fas/theme.min.js"></script -->
<!-- script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].5/themes/fas/theme.min.js"></script -->

<!-- optionally if you need translation for your language then include the locale file as mentioned below (replace LANG.js with your language locale) -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].4/js/locales/LANG.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/[email protected].5/js/locales/LANG.js"></script>
```
With v5.2.1, the plugin is able to automatically detect the bootstrap library version and deliver the relevant bootstrap specific functionality (if you have loaded the bootstrap.min.js before fileinput.min.js). In case of any issues - you can explicitly set the bootstrap version by setting the following variable before the plugin initialization script.

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-fileinput",
"version": "5.2.4",
"version": "5.2.5",
"homepage": "https://github.com/kartik-v/bootstrap-fileinput",
"authors": [
"Kartik Visweswaran <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion css/fileinput-rtl.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-fileinput v5.2.4
* bootstrap-fileinput v5.2.5
* http://plugins.krajee.com/file-input
*
* Krajee RTL (Right To Left) default styling for bootstrap-fileinput.
Expand Down
2 changes: 1 addition & 1 deletion css/fileinput-rtl.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/fileinput.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-fileinput v5.2.4
* bootstrap-fileinput v5.2.5
* http://plugins.krajee.com/file-input
*
* Krajee default styling for bootstrap-fileinput.
Expand Down
2 changes: 1 addition & 1 deletion css/fileinput.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/index-bs3.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- release v5.2.4, copyright 2014 - 2021 Kartik Visweswaran -->
<!-- release v5.2.5, copyright 2014 - 2021 Kartik Visweswaran -->
<!--suppress JSUnresolvedLibraryURL -->
<html lang="en">
<head>
Expand Down
2 changes: 1 addition & 1 deletion examples/index-bs4.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- release v5.2.4, copyright 2014 - 2021 Kartik Visweswaran -->
<!-- release v5.2.5, copyright 2014 - 2021 Kartik Visweswaran -->
<!--suppress JSUnresolvedLibraryURL -->
<html lang="en">
<head>
Expand Down
2 changes: 1 addition & 1 deletion examples/index-bs5.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- release v5.2.4, copyright 2014 - 2021 Kartik Visweswaran -->
<!-- release v5.2.5, copyright 2014 - 2021 Kartik Visweswaran -->
<!--suppress JSUnresolvedLibraryURL -->
<html lang="en">
<head>
Expand Down
10 changes: 5 additions & 5 deletions js/fileinput.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-fileinput v5.2.4
* bootstrap-fileinput v5.2.5
* http://plugins.krajee.com/file-input
*
* Author: Kartik Visweswaran
Expand All @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'], factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
'use strict';

$.fn.fileinputLocales = {};
Expand Down
12 changes: 6 additions & 6 deletions js/fileinput.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions js/locales/LANG.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['_LANG_'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/ar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['ar'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/az.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['az'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/bg.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['bg'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/ca.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['ca'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/cr.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['cr'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/cs.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['cs'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/de.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['de'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/el.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['el'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['es'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/et.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['et'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/fa.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['fa'] = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/fi.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales.fi = {
Expand Down
8 changes: 4 additions & 4 deletions js/locales/fr.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
define(['jquery', 'window', 'document'],factory);
define(['jquery'], factory);
} else if (typeof module === 'object' && typeof module.exports === 'object') {
factory(require('jquery'), window, document);
factory(require('jquery'));
} else {
factory(window.jQuery, window, document);
factory(window.jQuery);
}
}(function ($, window, document, undefined) {
}(function ($) {
"use strict";

$.fn.fileinputLocales['fr'] = {
Expand Down

0 comments on commit b2526e4

Please sign in to comment.