فهرست منبع

Update to release v4.1.1

Kartik Visweswaran 10 سال پیش
والد
کامیت
e4074b6a22
7فایلهای تغییر یافته به همراه17 افزوده شده و 9 حذف شده
  1. 7 0
      CHANGE.md
  2. 1 1
      README.md
  3. 1 1
      bower.json
  4. 1 1
      css/fileinput.css
  5. 1 1
      css/fileinput.min.css
  6. 5 4
      js/fileinput.js
  7. 1 1
      js/fileinput.min.js

+ 7 - 0
CHANGE.md

@@ -1,3 +1,10 @@
+version 4.1.1
+=============
+**Date:** 18-Dec-2014
+
+1. (bug #76): Update filestack when `showPreview` is false.
+2. (bug #78): Set uploadExtraData parameters to be correctly sent via POST.
+
 version 4.1.0
 =============
 **Date:** 17-Dec-2014

+ 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.1.0 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.1 has been released. Refer the [CHANGE LOG](https://github.com/kartik-v/bootstrap-fileinput/blob/master/CHANGE.md) for details.
 
 ## Features  
 

+ 1 - 1
bower.json

@@ -1,6 +1,6 @@
 {
     "name": "bootstrap-fileinput",
-    "version": "4.1.0",
+    "version": "4.1.1",
     "homepage": "https://github.com/kartik-v/bootstrap-fileinput",
     "authors": [
         "Kartik Visweswaran <[email protected]>"

+ 1 - 1
css/fileinput.css

@@ -1,7 +1,7 @@
 /*!
  * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014
  * @package bootstrap-fileinput
- * @version 4.0.0
+ * @version 4.1.1
  *
  * 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.0
+ * @version 4.1.1
  *
  * File input styling for Bootstrap 3.0
  * Built for Yii Framework 2.0

+ 5 - 4
js/fileinput.js

@@ -1,6 +1,6 @@
 /*!
  * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014
- * @version 4.1.0
+ * @version 4.1.1
  *
  * File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced 
  * features including the FileReader API. 
@@ -810,9 +810,9 @@
             if (self.uploadExtraData.length == 0) {
                 return;
             }
-            $.each(self.uploadExtraData, function(j, data) {
-                if (!isEmpty(data.id) && !isEmpty(data.value)) {
-                    fd.append(data.id, data.value);
+            $.each(self.uploadExtraData, function(key, value) {
+                if (!isEmpty(key) && !isEmpty(value)) {
+                    fd.append(key, value);
                 }
             });
         },
@@ -1226,6 +1226,7 @@
                 }
                 if (!self.showPreview) {
                     $el.trigger('fileloaded', [file, previewId, i]);
+                    self.filestack.push(file);
                     setTimeout(readFile(i + 1), 100);
                     return;
                 }

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 1
js/fileinput.min.js


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است