summaryrefslogtreecommitdiff
path: root/src/application/views/template_end.php
diff options
context:
space:
mode:
authorJonas Kohl <git@jonaskohl.de>2024-09-18 23:05:35 +0200
committerJonas Kohl <git@jonaskohl.de>2024-09-18 23:05:35 +0200
commit01454544896827113e49db0d2848b5aab6ce14ae (patch)
tree9487c3d45a04d350bca2ed8401a797ed69cd7e8a /src/application/views/template_end.php
parenta65d424263adfbff9629c7d91a613e4504c84613 (diff)
Many changes
Diffstat (limited to 'src/application/views/template_end.php')
-rw-r--r--src/application/views/template_end.php8
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();
})
)