Skip to content

Commit 63c88cd

Browse files
committed
Fix #2: Preview display based on showPreview
1 parent 5db03b8 commit 63c88cd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

js/fileinput.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
else {
8585
this.mainTemplate = options.mainTemplate;
8686
}
87-
this.previewTemplate = options.previewTemplate;
87+
this.previewTemplate = (this.showPreview) ? options.previewTemplate : '';
8888
this.captionTemplate = options.captionTemplate;
8989
this.browseLabel = options.browseLabel;
9090
this.browseIcon = options.browseIcon;

js/fileinput.min.js

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)