Skip to content

Commit f0a2de9

Browse files
committed
Upgrade to release v4.2.0 fixes #277
1 parent c08c565 commit f0a2de9

27 files changed

+83
-327
lines changed

CHANGE.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
version 4.2.0
22
=============
3-
**Date**: 05-May-2015
3+
**Date**: 09-May-2015
44

55
1. (enh #275): Add Czech & Slovakian translations.
6+
2. (enh #277): New `language` property to allow configuring multi lang widgets on same page.
67

78
version 4.1.9
89
=============

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ An enhanced HTML 5 file input for Bootstrap 3.x with file preview for various fi
1212

1313
This plugin was initially inspired by [this blog article](http://www.abeautifulsite.net/blog/2013/08/whipping-file-inputs-into-shape-with-bootstrap-3/) and [Jasny's File Input plugin](http://jasny.github.io/bootstrap/javascript/#fileinput). But the plugin has now matured with various additional features and enhancements to be a complete (yet simple) file management tool and solution for web developers.
1414

15-
> NOTE: The latest version of the plugin v4.1.9 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
15+
> NOTE: The latest version of the plugin v4.2.0 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
1616
1717
## Features
1818

@@ -155,6 +155,9 @@ As shown in the installation section, translations are now enabled with release
155155
## Plugin Options
156156
The plugin supports these following options:
157157

158+
### language
159+
_string_ language configuration for the plugin to enable the plugin to display messages for your locale (you must set the ISO code for the language). You can have multiple language widgets on the same page. The locale JS file for the language code must be defined as mentioned in the translations section. The file must be loaded after `fileinput.js`.
160+
158161
### showCaption
159162
_boolean_ whether to display the file caption. Defaults to `true`.
160163

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-fileinput",
3-
"version": "4.1.9",
3+
"version": "4.2.0",
44
"homepage": "https://github.com/kartik-v/bootstrap-fileinput",
55
"authors": [
66
"Kartik Visweswaran <[email protected]>"

css/fileinput.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015
33
* @package bootstrap-fileinput
4-
* @version 4.1.9
4+
* @version 4.2.0
55
*
66
* File input styling for Bootstrap 3.0
77
* Built for Yii Framework 2.0

css/fileinput.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/index.html

+27-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
<!DOCTYPE html>
2-
<!-- release v4.1.9, copyright 2014 - 2015 Kartik Visweswaran -->
2+
<!-- release v4.2.0, copyright 2014 - 2015 Kartik Visweswaran -->
33
<html lang="en">
44
<head>
55
<meta charset="UTF-8"/>
66
<title>Krajee JQuery Plugins - &copy; Kartik</title>
77
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
88
<link href="../css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
99
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
10-
<script src="../js/fileinput.js" type="text/javascript"></script>
10+
<script src="../js/fileinput.min.js" type="text/javascript"></script>
11+
<script src="../js/fileinput_locale_fr.js" type="text/javascript"></script>
12+
<script src="../js/fileinput_locale_es.js" type="text/javascript"></script>
1113
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
1214
</head>
1315
<body>
@@ -70,9 +72,32 @@ <h1>Bootstrap File Input Example <small><a href="https://github.com/kartik-v/boo
7072
<input id="file-5" class="file" type="file" multiple data-preview-file-type="any" data-upload-url="#" data-preview-file-icon="">
7173
</div>
7274
</form>
75+
76+
77+
<hr>
78+
<h4>Multi Language Inputs</h4>
79+
<form enctype="multipart/form-data">
80+
<label>French Input</label>
81+
<input id="file-fr" name="file-fr[]" type="file" multiple>
82+
<hr style="border: 2px dotted">
83+
<label>Spanish Input</label>
84+
<input id="file-es" name="file-es[]" type="file" multiple>
85+
</form>
86+
<hr>
87+
<br>
7388
</div>
7489
</body>
7590
<script>
91+
$('#file-fr').fileinput({
92+
language: 'fr',
93+
uploadUrl: '#',
94+
allowedFileExtensions : ['jpg', 'png','gif'],
95+
});
96+
$('#file-es').fileinput({
97+
language: 'es',
98+
uploadUrl: '#',
99+
allowedFileExtensions : ['jpg', 'png','gif'],
100+
});
76101
$("#file-0").fileinput({
77102
'allowedFileExtensions' : ['jpg', 'png','gif'],
78103
});

examples/index_de.html

-122
This file was deleted.

examples/index_pl.html

-122
This file was deleted.

0 commit comments

Comments
 (0)