diff options
| author | horus_arch | 2015-04-21 01:47:42 +0200 |
|---|---|---|
| committer | horus_arch | 2015-04-21 01:47:42 +0200 |
| commit | b3fa125ed0292f8ca37e91bf19c8cae7cdacc506 (patch) | |
| tree | 61079b97ed26bf4c9483eb14dee7205c3c349b90 /static | |
| parent | 01e9a34952bd6ddd383680b0ca2312e476ad07a6 (diff) | |
| download | mandible-b3fa125ed0292f8ca37e91bf19c8cae7cdacc506.tar.gz | |
Add API documentation and better defaults.
Diffstat (limited to 'static')
| -rw-r--r-- | static/js/bootstrap.file-input.js | 4 |
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) |
