From 21d8a543a443364f01d4e180213c1cf6f64fec5a Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 4 Jul 2022 17:20:35 +0800 Subject: [PATCH] * Fix bug #24721. --- module/task/js/batchcreate.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/task/js/batchcreate.js b/module/task/js/batchcreate.js index 6ffa86ebbe..633fc8036a 100755 --- a/module/task/js/batchcreate.js +++ b/module/task/js/batchcreate.js @@ -29,6 +29,17 @@ $(function() var fieldCount = $('#batchCreateForm .table thead>tr>th:visible').length; $('.form-actions').attr('colspan', fieldCount); + if(fieldCount > 9) + { + $('#batchCreateForm > .table-responsive').removeClass('scroll-none'); + $('#batchCreateForm > .table-responsive').css('overflow', 'auto'); + } + else + { + $('#batchCreateForm > .table-responsive').addClass('scroll-none'); + $('#batchCreateForm > .table-responsive').css('overflow', 'visible'); + } + if($('th.c-name').width() < 165) $('th.c-name').width(165); });