summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/js/bootstrap.file-input.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/js/bootstrap.file-input.js b/static/js/bootstrap.file-input.js
index c56ea33..54d7c5b 100644
--- a/static/js/bootstrap.file-input.js
+++ b/static/js/bootstrap.file-input.js
@@ -29,6 +29,7 @@ $.fn.bootstrapFileInput = function() {
if (typeof $elem.attr('title') != 'undefined') {
buttonWord = $elem.attr('title');
}
+ buttonWord = '<span class="glyphicon glyphicon-picture"></span> ' + buttonWord;
var className = '';
@@ -105,7 +106,8 @@ $.fn.bootstrapFileInput = function() {
var selectedFileNamePlacement = $(this).data('filename-placement');
if (selectedFileNamePlacement === 'inside') {
// Print the fileName inside
- $(this).siblings('span').html(fileName);
+ fileTitle = '<span class="glyphicon glyphicon-picture"></span> ' + fileName;
+ $(this).siblings('span').html(fileTitle);
$(this).attr('title', fileName);
} else {
// Print the fileName aside (right after the the button)