Skip to content

Commit

Permalink
Fix kartik-v#2: Preview display based on showPreview
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed May 7, 2014
1 parent 5db03b8 commit 63c88cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
3 changes: 1 addition & 2 deletions js/fileinput.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 63c88cd

Please sign in to comment.