diff options
author | Jonas Kohl | 2024-09-18 23:05:35 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-09-18 23:05:35 +0200 |
commit | 01454544896827113e49db0d2848b5aab6ce14ae (patch) | |
tree | 9487c3d45a04d350bca2ed8401a797ed69cd7e8a /src/application/views/template_end.php | |
parent | a65d424263adfbff9629c7d91a613e4504c84613 (diff) |
Many changes
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(); }) ) |