瀏覽代碼

Updates to release v4.1.9

Kartik Visweswaran 10 年之前
父節點
當前提交
5f50df4783
共有 9 個文件被更改,包括 12 次插入14 次删除
  1. 2 0
      CHANGE.md
  2. 1 1
      README.md
  3. 1 1
      bower.json
  4. 1 2
      css/fileinput.css
  5. 1 1
      css/fileinput.min.css
  6. 1 1
      examples/index.html
  7. 1 1
      examples/index_de.html
  8. 3 6
      js/fileinput.js
  9. 1 1
      js/fileinput.min.js

+ 2 - 0
CHANGE.md

@@ -3,6 +3,8 @@ version 4.1.9
 **Date**: 06-Apr-2015
 
 1. (enh #232): Update docs to reflect updated bootstrap CDN domain.
+2. (enh #237): Better styling of file caption icon.
+3. (bug #238): Correct initialization of plugin variables when other than maxFileCount & maxFileSize.
 
 version 4.1.8
 =============

+ 1 - 1
README.md

@@ -6,7 +6,7 @@ An enhanced HTML 5 file input for Bootstrap 3.x with file preview for various fi
 
 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. 
 
-> NOTE: The latest version of the plugin v4.1.8 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.9 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.8",
+    "version": "4.1.9",
     "homepage": "https://github.com/kartik-v/bootstrap-fileinput",
     "authors": [
         "Kartik Visweswaran <[email protected]>"

+ 1 - 2
css/fileinput.css

@@ -1,7 +1,7 @@
 /*!
  * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015
  * @package bootstrap-fileinput
- * @version 4.1.8
+ * @version 4.1.9
  *
  * File input styling for Bootstrap 3.0
  * Built for Yii Framework 2.0
@@ -48,7 +48,6 @@
 .file-caption .glyphicon {
     display: inline-block;
     min-width: 18px;
-    float: left;
     margin-top: 2px;
 }
 

文件差異過大導致無法顯示
+ 1 - 1
css/fileinput.min.css


+ 1 - 1
examples/index.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- release v4.1.8, copyright 2014 - 2015 Kartik Visweswaran -->
+<!-- release v4.1.9, copyright 2014 - 2015 Kartik Visweswaran -->
 <html lang="en">
     <head>
         <meta charset="UTF-8"/>

+ 1 - 1
examples/index_de.html

@@ -1,5 +1,5 @@
 <!DOCTYPE html>
-<!-- release v4.1.8, copyright 2014 - 2015 Kartik Visweswaran -->
+<!-- release v4.1.9, copyright 2014 - 2015 Kartik Visweswaran -->
 <html lang="en">
     <head>
         <meta charset="UTF-8"/>

+ 3 - 6
js/fileinput.js

@@ -1,6 +1,6 @@
 /*!
  * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015
- * @version 4.1.8
+ * @version 4.1.9
  *
  * File input styled for Bootstrap 3.0 that utilizes HTML5 File Input's advanced 
  * features including the FileReader API. 
@@ -437,10 +437,7 @@
         init: function (options) {
             var self = this, $el = self.$element, t;
             $.each(options, function (key, value) {
-                if (key === 'maxFileCount' || key === 'maxFileSize') {
-                    self[key] = getNum(value);
-                }
-                self[key] = value;
+                self[key] = (key === 'maxFileCount' || key === 'maxFileSize') ? getNum(value) : value;
             });
             self.fileInputCleared = false;
             self.fileBatchCompleted = true;
@@ -1895,7 +1892,7 @@
                 self.msgValidationErrorIcon + title + '</span>';
             } else {
                 title = $('<div>' + content + '</div>').text();
-                out = title + self.getLayoutTemplate('icon');
+                out = self.getLayoutTemplate('icon') + title;
             }
             self.$caption.html(out);
             self.$caption.attr('title', title);

文件差異過大導致無法顯示
+ 1 - 1
js/fileinput.min.js


部分文件因文件數量過多而無法顯示