Browse Source

Fix #2: Preview display based on showPreview

Kartik Visweswaran 11 năm trước cách đây
mục cha
commit
63c88cd06d
2 tập tin đã thay đổi với 1 bổ sung2 xóa
  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;

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 1
js/fileinput.min.js


Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác