diff options
Diffstat (limited to 'src/application/views/template_end.php')
-rw-r--r-- | src/application/views/template_end.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/application/views/template_end.php b/src/application/views/template_end.php index f322b36..9633782 100644 --- a/src/application/views/template_end.php +++ b/src/application/views/template_end.php @@ -76,11 +76,17 @@ $(function() { $("input[type=file]").each(function(i, e) { var isMultiple = !!$(e).prop("multiple"); + var isSmall = !!$(e).hasClass("small"); var $input = $('<input type="text" readonly class="form-control" />').attr("placeholder", _messages.filesSelected[0]).css("text-overflow", "ellipsis"); + var $btn = $('<button class="btn btn-default" type="button"></button>'); + if (isSmall) { + $input.addClass("input-sm"); + $btn.addClass("btn-sm"); + } $(e).after($('<div class="input-group file-input-group"></div>').append( $input, $('<span class="input-group-btn"></span>').append( - $('<button class="btn btn-default" type="button"></button>').text(_messages.selectFiles[isMultiple ? 1 : 0]).click(function() { + $btn.text(_messages.selectFiles[isMultiple ? 1 : 0]).click(function() { $(e).click(); }) ) |