From 01454544896827113e49db0d2848b5aab6ce14ae Mon Sep 17 00:00:00 2001 From: Jonas Kohl Date: Wed, 18 Sep 2024 23:05:35 +0200 Subject: Many changes --- src/application/views/template_end.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/application/views/template_end.php') 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 = $('').attr("placeholder", _messages.filesSelected[0]).css("text-overflow", "ellipsis"); + var $btn = $(''); + if (isSmall) { + $input.addClass("input-sm"); + $btn.addClass("btn-sm"); + } $(e).after($('
').append( $input, $('').append( - $('').text(_messages.selectFiles[isMultiple ? 1 : 0]).click(function() { + $btn.text(_messages.selectFiles[isMultiple ? 1 : 0]).click(function() { $(e).click(); }) ) -- cgit v1.2.3