6056 |
efrain |
1 |
/*!
|
|
|
2 |
* bootstrap-fileinput v5.1.3
|
|
|
3 |
* http://plugins.krajee.com/file-input
|
|
|
4 |
*
|
|
|
5 |
* Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.
|
|
|
6 |
* Load this theme file after loading `fileinput.js`. Ensure that
|
|
|
7 |
* font awesome assets and CSS are loaded on the page as well.
|
|
|
8 |
*
|
|
|
9 |
* Author: Kartik Visweswaran
|
|
|
10 |
* Copyright: 2014 - 2020, Kartik Visweswaran, Krajee.com
|
|
|
11 |
*
|
|
|
12 |
* Licensed under the BSD-3-Clause
|
|
|
13 |
* https://github.com/kartik-v/bootstrap-fileinput/blob/master/LICENSE.md
|
|
|
14 |
*/
|
|
|
15 |
(function ($) {
|
|
|
16 |
'use strict';
|
|
|
17 |
$.fn.fileinputThemes['explorer-fa'] = {
|
|
|
18 |
layoutTemplates: {
|
|
|
19 |
footer: '<div class="file-details-cell">' +
|
|
|
20 |
'<div class="explorer-caption" title="{caption}">{caption}</div> ' + '{size}{progress}' +
|
|
|
21 |
'</div>' +
|
|
|
22 |
'<div class="file-actions-cell">{indicator} {actions}</div>',
|
|
|
23 |
actions: '{drag}\n' +
|
|
|
24 |
'<div class="file-actions">\n' +
|
|
|
25 |
' <div class="file-footer-buttons">\n' +
|
|
|
26 |
' {upload} {download} {delete} {zoom} {other} ' +
|
|
|
27 |
' </div>\n' +
|
|
|
28 |
'</div>',
|
|
|
29 |
fileIcon: '<i class="fa fa-file kv-caption-icon"></i> '
|
|
|
30 |
},
|
|
|
31 |
previewSettings: {
|
|
|
32 |
html: {width: '100px', height: '60px'},
|
|
|
33 |
text: {width: '100px', height: '60px'},
|
|
|
34 |
video: {width: 'auto', height: '60px'},
|
|
|
35 |
audio: {width: 'auto', height: '60px'},
|
|
|
36 |
flash: {width: '100%', height: '60px'},
|
|
|
37 |
object: {width: '100%', height: '60px'},
|
|
|
38 |
pdf: {width: '100px', height: '60px'},
|
|
|
39 |
other: {width: '100%', height: '60px'}
|
|
|
40 |
},
|
|
|
41 |
frameClass: 'explorer-frame',
|
|
|
42 |
fileActionSettings: {
|
|
|
43 |
removeIcon: '<i class="fa fa-trash"></i>',
|
|
|
44 |
uploadIcon: '<i class="fa fa-upload"></i>',
|
|
|
45 |
uploadRetryIcon: '<i class="fa fa-repeat"></i>',
|
|
|
46 |
downloadIcon: '<i class="fa fa-download"></i>',
|
|
|
47 |
zoomIcon: '<i class="fa fa-search-plus"></i>',
|
|
|
48 |
dragIcon: '<i class="fa fa-arrows"></i>',
|
|
|
49 |
indicatorNew: '<i class="fa fa-plus-circle text-warning"></i>',
|
|
|
50 |
indicatorSuccess: '<i class="fa fa-check-circle text-success"></i>',
|
|
|
51 |
indicatorError: '<i class="fa fa-exclamation-circle text-danger"></i>',
|
|
|
52 |
indicatorLoading: '<i class="fa fa-hourglass text-muted"></i>',
|
|
|
53 |
indicatorPaused: '<i class="fa fa-pause text-info"></i>'
|
|
|
54 |
},
|
|
|
55 |
previewZoomButtonIcons: {
|
|
|
56 |
prev: '<i class="fa fa-caret-left fa-lg"></i>',
|
|
|
57 |
next: '<i class="fa fa-caret-right fa-lg"></i>',
|
|
|
58 |
toggleheader: '<i class="fa fa-fw fa-arrows-v"></i>',
|
|
|
59 |
fullscreen: '<i class="fa fa-fw fa-arrows-alt"></i>',
|
|
|
60 |
borderless: '<i class="fa fa-fw fa-external-link"></i>',
|
|
|
61 |
close: '<i class="fa fa-fw fa-remove"></i>'
|
|
|
62 |
},
|
|
|
63 |
previewFileIcon: '<i class="fa fa-file"></i>',
|
|
|
64 |
browseIcon: '<i class="fa fa-folder-open"></i>',
|
|
|
65 |
removeIcon: '<i class="fa fa-trash"></i>',
|
|
|
66 |
cancelIcon: '<i class="fa fa-ban"></i>',
|
|
|
67 |
pauseIcon: '<i class="fa fa-pause"></i>',
|
|
|
68 |
uploadIcon: '<i class="fa fa-upload"></i>',
|
|
|
69 |
msgValidationErrorIcon: '<i class="fa fa-exclamation-circle"></i> '
|
|
|
70 |
};
|
|
|
71 |
})(window.jQuery);
|