ソースを参照

Fix #2: Preview display based on showPreview

Kartik Visweswaran 11 年 前
コミット
63c88cd06d
2 ファイル変更1 行追加2 行削除
  1. 1 1
      js/fileinput.js
  2. 0 1
      js/fileinput.min.js

+ 1 - 1
js/fileinput.js

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

ファイルの差分が大きいため隠しています
+ 0 - 1
js/fileinput.min.js


この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません