From b3fa125ed0292f8ca37e91bf19c8cae7cdacc506 Mon Sep 17 00:00:00 2001
From: horus_arch
Date: Tue, 21 Apr 2015 01:47:42 +0200
Subject: Add API documentation and better defaults.
---
static/js/bootstrap.file-input.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'static/js/bootstrap.file-input.js')
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 = ' ' + 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 = ' ' + fileName;
+ $(this).siblings('span').html(fileTitle);
$(this).attr('title', fileName);
} else {
// Print the fileName aside (right after the the button)
--
cgit v1.2.3