Parcourir la source

Upgrade to release v4.1.0

Kartik Visweswaran il y a 10 ans
Parent
commit
e8813c4433
8 fichiers modifiés avec 16 ajouts et 9 suppressions
  1. 3 2
      CHANGE.md
  2. 1 1
      README.md
  3. 2 1
      bower.json
  4. 1 1
      composer.json
  5. 1 1
      css/fileinput.css
  6. 1 1
      css/fileinput.min.css
  7. 6 1
      js/fileinput.js
  8. 1 1
      js/fileinput.min.js

+ 3 - 2
CHANGE.md

@@ -1,11 +1,12 @@
-version 4.0.1
+version 4.1.0
 =============
-**Date:** 16-Dec-2014
+**Date:** 17-Dec-2014
 
 1. (enh #74): Enhancements to file validation errors for both FORM and AJAX uploads.
     - For normal Form based uploads automatically disable the Upload button
     - Display a separate error styled thumbnail for the file that faced the validation error.
     - Reset errors correctly to overwrite files with a new change or drag/drop
+2. (enh #75): Better validation of browser support for drag and drop.
 
 version 4.0.0
 =============

+ 1 - 1
README.md

@@ -7,7 +7,7 @@ wide variety of files i.e. images, text, html, video, audio, flash, and objects.
 
 ![File Input Screenshot](https://lh3.googleusercontent.com/-3FiEmc_okc4/VBw_d2LBAJI/AAAAAAAAAL8/KbVj5X9Dus0/w596-h454-no/FileInput.jpg)
 
-> NOTE: The latest version of the plugin v4.0.1 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
+> NOTE: The latest version of the plugin v4.1.0 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
 
 ## Features  
 

+ 2 - 1
bower.json

@@ -1,6 +1,6 @@
 {
     "name": "bootstrap-fileinput",
-    "version": "4.0.1",
+    "version": "4.1.0",
     "homepage": "https://github.com/kartik-v/bootstrap-fileinput",
     "authors": [
         "Kartik Visweswaran <[email protected]>"
@@ -19,6 +19,7 @@
         "upload",
         "ajax",
         "multiple",
+        "delete",
         "progress"
     ],
     "dependencies": {

+ 1 - 1
composer.json

@@ -1,7 +1,7 @@
 {
     "name": "kartik-v/bootstrap-fileinput",
     "description": "An enhanced HTML 5 file input for Bootstrap 3.x with features for file preview for many file types, multiple selection, ajax uploads, and more.",
-    "keywords": ["bootstrap", "jquery", "file", "input", "preview", "upload", "image", "multiple", "ajax", "progress"],
+    "keywords": ["bootstrap", "jquery", "file", "input", "preview", "upload", "image", "multiple", "ajax", "delete", "progress"],
     "homepage": "https://github.com/kartik-v/bootstrap-fileinput",
     "license": "BSD 3-Clause",
     "authors": [

+ 1 - 1
css/fileinput.css

@@ -1,7 +1,7 @@
 /*!
  * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014
  * @package bootstrap-fileinput
- * @version 4.0.1
+ * @version 4.1.0
  *
  * File input styling for Bootstrap 3.0
  * Built for Yii Framework 2.0

+ 1 - 1
css/fileinput.min.css

@@ -1,7 +1,7 @@
 /*!
  * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014
  * @package bootstrap-fileinput
- * @version 4.0.1
+ * @version 4.1.0
  *
  * File input styling for Bootstrap 3.0
  * Built for Yii Framework 2.0

+ 6 - 1
js/fileinput.js

@@ -1,6 +1,6 @@
 /*!
  * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014
- * @version 4.0.1
+ * @version 4.1.0
  *
  * File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced 
  * features including the FileReader API. 
@@ -27,6 +27,10 @@
         hasFileAPISupport = function () {
             return window.File && window.FileReader;
         },
+        hasDragDropSupport = function() {
+            var $div = document.createElement('div');
+            return !isIE(9) && (('draggable' in $div) || ('ondragstart' in $div && 'ondrop' in $div));
+        },
         hasFileUploadSupport = function () {
             return hasFileAPISupport && window.FormData;
         },
@@ -265,6 +269,7 @@
             self.filestack = [];
             self.ajaxRequests = [];
             self.isError = false;
+            self.dropZoneEnabled = hasDragDropSupport() && self.dropZoneEnabled;
             self.isDisabled = self.$element.attr('disabled') || self.$element.attr('readonly');
             self.isUploadable = hasFileUploadSupport && !isEmpty(self.uploadUrl);
             self.slug = typeof options.slugCallback == "function" ? options.slugCallback : self.slugDefault;

Fichier diff supprimé car celui-ci est trop grand
+ 1 - 1
js/fileinput.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff