Browse Source

Fix #2: Preview display based on showPreview

Kartik Visweswaran 11 years ago
parent
commit
63c88cd06d
2 changed files with 1 additions and 2 deletions
  1. 1 1
      js/fileinput.js
  2. 0 1
      js/fileinput.min.js

+ 1 - 1
js/fileinput.js

@@ -84,7 +84,7 @@
         else {
             this.mainTemplate = options.mainTemplate;
         }
-        this.previewTemplate = options.previewTemplate;
+        this.previewTemplate = (this.showPreview) ? options.previewTemplate : '';        
         this.captionTemplate = options.captionTemplate;
         this.browseLabel = options.browseLabel;
         this.browseIcon = options.browseIcon;

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


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