Skip to content

Commit 47377ed

Browse files
committed
Updates to release v4.4.5
1 parent 688f34c commit 47377ed

File tree

8 files changed

+414
-212
lines changed

8 files changed

+414
-212
lines changed

CHANGE.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
Change Log: `bootstrap-fileinput`
22
=================================
33

4-
## version 4.4.5 (_under development_)
4+
## version 4.4.5
55

6-
**Date:** 30-Sep-2017
6+
**Date:** 01-Oct-2017
77

8+
- Update readme and example index to use plugin's CDN libraries.
89
- (enh #1093): Revamp SCSS with better variables and extensions.
910
- (enh #1091): Set default button type for close button markup template.
1011
- (enh #1090): Auto detect intelligently the preview type based on file content.

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,31 @@ Step 1: Load the following assets in your header.
6060
```html
6161
<!-- bootstrap 4.x is supported. You can also use the bootstrap css 3.3.x versions -->
6262
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css">
63-
<link href="path/to/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />
63+
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/css/fileinput.min.css" media="all" rel="stylesheet" type="text/css" />
6464
<!-- if using RTL (Right-To-Left) orientation, load the RTL CSS file after fileinput.css by uncommenting below -->
65-
<!-- link href="path/to/css/fileinput-rtl.min.css" media="all" rel="stylesheet" type="text/css" /-->
65+
<!-- link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/css/fileinput-rtl.min.css" media="all" rel="stylesheet" type="text/css" /-->
6666
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
6767
<!-- piexif.min.js is only needed for restoring exif data in resized images and when you
6868
wish to resize images before upload. This must be loaded before fileinput.min.js -->
69-
<script src="path/to/js/plugins/piexif.min.js" type="text/javascript"></script>
69+
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/js/plugins/piexif.min.js" type="text/javascript"></script>
7070
<!-- sortable.min.js is only needed if you wish to sort / rearrange files in initial preview.
7171
This must be loaded before fileinput.min.js -->
72-
<script src="path/to/js/plugins/sortable.min.js" type="text/javascript"></script>
72+
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/js/plugins/sortable.min.js" type="text/javascript"></script>
7373
<!-- purify.min.js is only needed if you wish to purify HTML content in your preview for
7474
HTML files. This must be loaded before fileinput.min.js -->
75-
<script src="path/to/js/plugins/purify.min.js" type="text/javascript"></script>
75+
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/js/plugins/purify.min.js" type="text/javascript"></script>
7676
<!-- popper.min.js below is needed if you use bootstrap 4.x. You can also use the bootstrap js
7777
3.3.x versions without popper.min.js. -->
7878
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
7979
<!-- bootstrap.min.js below is needed if you wish to zoom and preview file content in a detail modal
8080
dialog. bootstrap 4.x is supported. You can also use the bootstrap js 3.3.x versions. -->
8181
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" type="text/javascript"></script>
8282
<!-- the main fileinput plugin file -->
83-
<script src="path/to/js/fileinput.min.js"></script>
83+
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/js/fileinput.min.js"></script>
8484
<!-- optionally if you need a theme like font awesome theme you can include it as mentioned below -->
85-
<script src="path/to/js/fa.js"></script>
85+
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/themes/fa/theme.js"></script>
8686
<!-- optionally if you need translation for your language then include locale file as mentioned below -->
87-
<script src="path/to/js/(lang).js"></script>
87+
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-fileinput/4.4.5/js/(lang).js"></script>
8888
```
8989

9090
If you noticed, you need to load the `jquery.min.js` and `bootstrap.min.css` in addition to the `fileinput.min.css` and `fileinput.min.js`. The theme file `themes/fa/theme.js` can be optionally included for the font awesome icons styling. The locale file `<lang>.js` can be optionally included for translating for your language if needed.

css/fileinput-rtl.css

+19
Original file line numberDiff line numberDiff line change
@@ -13,67 +13,86 @@
1313
.kv-rtl .close, .kv-rtl .krajee-default .file-actions, .kv-rtl .krajee-default .file-other-error {
1414
float: left;
1515
}
16+
1617
.kv-rtl .krajee-default.file-preview-frame, .kv-rtl .krajee-default .file-drag-handle, .kv-rtl .krajee-default .file-upload-indicator {
1718
float: right;
1819
}
20+
1921
.kv-rtl .file-zoom-dialog, .kv-rtl .file-error-message pre, .kv-rtl .file-error-message ul {
2022
text-align: right;
2123
}
24+
2225
.kv-rtl {
2326
direction: rtl;
2427
}
28+
2529
.kv-rtl .floating-buttons {
2630
left: 10px;
2731
right: auto;
2832
}
33+
2934
.kv-rtl .floating-buttons .btn-kv {
3035
margin-left: 0;
3136
margin-right: 3px;
3237
}
38+
3339
.kv-rtl .file-caption-icon {
3440
left: auto;
3541
right: 8px;
3642
}
43+
3744
.kv-rtl .file-drop-zone {
3845
margin: 12px 12px 12px 15px;
3946
}
47+
4048
.kv-rtl .btn-prev {
4149
right: 1px;
4250
left: auto;
4351
}
52+
4453
.kv-rtl .btn-next {
4554
left: 1px;
4655
right: auto;
4756
}
57+
4858
.kv-rtl .pull-right, .kv-rtl .float-right {
4959
float: left !important;
5060
}
61+
5162
.kv-rtl .pull-left, .kv-rtl .float-left {
5263
float: right !important;
5364
}
65+
5466
.kv-rtl .kv-zoom-title {
5567
direction: ltr;
5668
}
69+
5770
.kv-rtl .krajee-default.file-preview-frame {
5871
box-shadow: -1px 1px 5px 0 #a2958a;
5972
}
73+
6074
.kv-rtl .krajee-default.file-preview-frame:not(.file-preview-error):hover {
6175
box-shadow: -3px 3px 5px 0 #333;
6276
}
77+
6378
.kv-rtl .kv-zoom-actions .btn-kv {
6479
margin-left: 0;
6580
margin-right: 3px;
6681
}
82+
6783
.kv-rtl .file-caption.icon-visible .file-caption-name {
6884
padding-left: 0;
6985
padding-right: 15px;
7086
}
87+
7188
.kv-rtl .input-group-btn:last-child > .btn {
7289
border-radius: 4px 0 0 4px;
7390
}
91+
7492
.kv-rtl .input-group .form-control:first-child {
7593
border-radius: 0 4px 4px 0;
7694
}
95+
7796
.kv-rtl .btn-file input[type=file] {
7897
right: auto;
7998
left: 0;

0 commit comments

Comments
 (0)