Browse Source

Parse all numeric properties correctly

Kartik Visweswaran 8 years ago
parent
commit
c103391dc8
3 changed files with 12 additions and 0 deletions
  1. 1 0
      CHANGE.md
  2. 11 0
      js/fileinput.js
  3. 0 0
      js/fileinput.min.js

+ 1 - 0
CHANGE.md

@@ -7,6 +7,7 @@ Change Log: `bootstrap-fileinput`
 
 1. (enh #910): New property `resizeIfMoreThan` to control image resize conditionally.
 2. (enh #915): Update default styling for zoom preview for object.
+3. Parse all numeric properties correctly.
 
 ## version 4.3.9
 

+ 11 - 0
js/fileinput.js

@@ -251,7 +251,18 @@
                 switch (key) {
                     case 'minFileCount':
                     case 'maxFileCount':
+                    case 'minFileSize':
                     case 'maxFileSize':
+                    case 'maxFilePreviewSize':
+                    case 'resizeImageQuality':
+                    case 'resizeIfSizeMoreThan':
+                    case 'progressUploadThreshold':
+                    case 'initialPreviewCount':
+                    case 'zoomModalHeight':
+                    case 'minImageHeight':
+                    case 'maxImageHeight':
+                    case 'minImageWidth':
+                    case 'maxImageWidth':
                         self[key] = $h.getNum(value);
                         break;
                     default:

File diff suppressed because it is too large
+ 0 - 0
js/fileinput.min.js


Some files were not shown because too many files changed in this diff