Skip to content

Commit cde7292

Browse files
committed
Update to release v4.3.0 - fixes #550
1 parent 728f6a9 commit cde7292

10 files changed

+20
-14
lines changed

CHANGE.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Change Log: `bootstrap-fileinput`
22
=================================
33

4+
## version 4.3.0
5+
6+
**Date:** 25-Jan-2016
7+
8+
1. (enh #550): Correct Drag and drop issue with v4.2.9.
9+
410
## version 4.2.9
511

612
**Date:** 22-Jan-2016

README.md

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

1212
![File Input Screenshot](https://lh3.googleusercontent.com/-3FiEmc_okc4/VBw_d2LBAJI/AAAAAAAAAL8/KbVj5X9Dus0/w596-h454-no/FileInput.jpg)
1313

14-
> NOTE: The latest version of the plugin is v4.2.9 (dev-master). Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
14+
> NOTE: The latest version of the plugin is v4.3.0 (dev-master). Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
1515
1616
## Documentation and Demo
1717

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-fileinput",
3-
"version": "4.2.9",
3+
"version": "4.3.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.2.9
4+
* @version 4.3.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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<!-- release v4.2.9, copyright 2014 - 2015 Kartik Visweswaran -->
2+
<!-- release v4.3.0, copyright 2014 - 2015 Kartik Visweswaran -->
33
<html lang="en">
44
<head>
55
<meta charset="UTF-8"/>

js/fileinput.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015
3-
* @version 4.2.9
3+
* @version 4.3.0
44
*
55
* File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced features including the FileReader API.
66
*
@@ -789,7 +789,7 @@
789789
handler($zone, 'dragenter dragover', $.proxy(self.zoneDragEnter, self));
790790
handler($zone, 'dragleave', $.proxy(self.zoneDragLeave, self));
791791
handler($zone, 'drop', $.proxy(self.zoneDrop, self));
792-
handler($zone, 'dragenter dragover drop', self.zoneDragDropInit);
792+
handler($(document), 'dragenter dragover drop', self.zoneDragDropInit);
793793
}
794794
},
795795
browse: function (e) {
@@ -2176,7 +2176,7 @@
21762176
},
21772177
updateFileDetails: function (numFiles) {
21782178
var self = this, $el = self.$element, fileStack = self.getFileStack(),
2179-
name = $el[0].files[0].name || (fileStack.length && fileStack[0].name) || '',
2179+
name = ($el[0].files[0] && $el[0].files[0].name) || (fileStack.length && fileStack[0].name) || '',
21802180
label = self.slug(name), n = self.isUploadable ? fileStack.length : numFiles,
21812181
nFiles = previewCache.count(self.id) + n, log = n > 1 ? self.getMsgSelected(nFiles) : label;
21822182
if (self.isError) {

js/fileinput.min.js

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

nuget/Package.nuspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<metadata>
44
<id>bootstrap-fileinput</id>
55
<title>bootstrap-fileinput</title>
6-
<version>4.2.9</version>
6+
<version>4.3.0</version>
77
<authors>Kartik Visweswaran, Robert Kiss (nuget package)</authors>
88
<owners>Kartik Visweswaran</owners>
99
<licenseUrl>https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md</licenseUrl>
@@ -12,7 +12,7 @@
1212
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1313
<description>An enhanced HTML 5 file input for Bootstrap 3.x with file preview for various files, offers multiple selection, and more.</description>
1414
<releaseNotes>https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md</releaseNotes>
15-
<copyright>Copyright 2015</copyright>
15+
<copyright>Copyright 2014 - 2016</copyright>
1616
<tags>bootstrap bootstrap-fileinput</tags>
1717
<dependencies>
1818
<dependency id="bootstrap" version="3.0.0" />

package.json

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

0 commit comments

Comments
 (0)