From 4e05cb1916749f40a08f37ff299b416446cf4e6a Mon Sep 17 00:00:00 2001 From: tianshujie Date: Tue, 5 Jul 2022 13:19:03 +0800 Subject: [PATCH] * Finish task #59472. --- module/task/css/batchcreate.css | 4 ++-- module/task/js/batchcreate.js | 2 ++ module/task/view/batchcreate.html.php | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/module/task/css/batchcreate.css b/module/task/css/batchcreate.css index df0b38611f..b6946f5a72 100644 --- a/module/task/css/batchcreate.css +++ b/module/task/css/batchcreate.css @@ -11,8 +11,8 @@ select[id^="story"] + .picker-single {width: 130px; max-width: 130px;} .main-header .pull-left {max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} #zeroTaskStory {margin: 0 0 0 20px; height: 32px; padding: 5px 5px 5px 5px; border-radius: 3px; border: 2px solid transparent;} -[lang^='en'] #zeroTaskStory {max-width: 205px !important;} -[lang^='de'] #zeroTaskStory {max-width: 220px !important;} +[lang^='en'] #zeroTaskStory {max-width: 210px !important;} +[lang^='de'] #zeroTaskStory {max-width: 225px !important;} [lang^='fr'] #zeroTaskStory {max-width: 265px !important;} #zeroTaskStory > label:before {top: 7px; left: 5px;} #zeroTaskStory > label:after {top: 7px; left: 5px;} diff --git a/module/task/js/batchcreate.js b/module/task/js/batchcreate.js index 6c33c8fdf1..e736366dd1 100755 --- a/module/task/js/batchcreate.js +++ b/module/task/js/batchcreate.js @@ -365,8 +365,10 @@ $(function() */ function addItem(obj) { + var item = $('#addItem').html().replace(/%i%/g, itemIndex + 1); $('' + item + '').insertAfter($(obj).closest('tr')); + $(".form-date").datepicker(); itemIndex ++; } diff --git a/module/task/view/batchcreate.html.php b/module/task/view/batchcreate.html.php index a22c4c32f6..9c67418434 100755 --- a/module/task/view/batchcreate.html.php +++ b/module/task/view/batchcreate.html.php @@ -181,7 +181,6 @@ $colspan = count($visibleFields) + 3; - @@ -196,6 +195,7 @@ $colspan = count($visibleFields) + 3; +