Skip to content

Commit

Permalink
Updates to release v4.4.2 fix #990 fix #1004
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Jun 23, 2017
1 parent 3e8cea7 commit eb1f5af
Show file tree
Hide file tree
Showing 9 changed files with 344 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@ Change Log: `bootstrap-fileinput`

## version 4.4.2 (_under development_)

**Date:** 17-Jun-2017
**Date:** 23-Jun-2017

- (enh #1004): New Krajee Explorer Font Awesome Theme.
- (bug #995): Correct and fix image load jquery event triggering for browser cache scenarios.
- (enh #991): Add Azerbaijan Translations.
- (enh #990): Ability to hide thumbnail content (`hideThumbnailContent`) and display only file name/size.
- (enh #989): Update Chinese Translations.
- (enh #987): Zoom preview arrows orientation for RTL.
- (enh #986): Image width parsing and styling enhancements.
- (enh #981): Update Hungarian Translations.
Expand Down
4 changes: 4 additions & 0 deletions css/fileinput.css
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,10 @@
background-color: #d9edf7;
}

.hide-content .kv-file-content {
display: none;
}

/* IE 10 fix */
.btn-file ::-ms-browse {
font-size: 10000px;
Expand Down
2 changes: 1 addition & 1 deletion css/fileinput.min.css

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

6 changes: 5 additions & 1 deletion js/fileinput.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@
self.disable();
}
self._initZoom();
if (self.hideThumbnailContent) {
$h.addCss(self.$preview, 'hide-content');
}
},
_initTemplateDefaults: function () {
var self = this, tMain1, tMain2, tPreview, tFileIcon, tClose, tCaption, tBtnDefault, tBtnLink, tBtnBrowse,
Expand Down Expand Up @@ -3083,7 +3086,7 @@
self.$captionContainer.find('.file-caption-ellipsis').attr('title', title);
},
_createContainer: function () {
var self = this, attribs = {"class": 'file-input file-input-new' + (self.rtl ? ' kv-rtl' : '')},
var self = this, attribs = {"class": 'file-input file-input-new' + (self.rtl ? ' kv-rtl' : '')},
$container = $(document.createElement("div")).attr(attribs).html(self._renderMain());
self.$element.before($container);
self._initBrowse($container);
Expand Down Expand Up @@ -3728,6 +3731,7 @@
autoOrientImage: true, // for JPEG images based on EXIF orientation tag
required: false,
rtl: false,
hideThumbnailContent: false,
generateFileId: null,
previewClass: '',
captionClass: '',
Expand Down
6 changes: 3 additions & 3 deletions js/fileinput.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit eb1f5af

Please sign in to comment.