From b03bdfa09e73a8635b4e8e9c0c8bf3972d336630 Mon Sep 17 00:00:00 2001 From: mayue Date: Tue, 30 Aug 2022 16:11:54 +0800 Subject: [PATCH] * Finish task #66993. --- module/execution/view/batchedit.html.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/execution/view/batchedit.html.php b/module/execution/view/batchedit.html.php index b132bc9fbe..2a606d1224 100755 --- a/module/execution/view/batchedit.html.php +++ b/module/execution/view/batchedit.html.php @@ -106,8 +106,8 @@ ?> '>execution->statusList, $executions[$executionID]->status, 'class=form-control');?> - begin, "id='begins{$executionID}' class='form-control form-date' onchange='computeWorkDays(this.id)'");?> - end, "id='ends{$executionID}' class='form-control form-date' onchange='computeWorkDays(this.id)'");?> + begin, "class='form-control form-date' onchange='computeWorkDays(this.id)'");?> + end, "class='form-control form-date' onchange='computeWorkDays(this.id)'");?> '> desc, "rows='1' class='form-control autosize'");?> '>team, "class='form-control'");?> '> @@ -154,7 +154,7 @@ $('#executionForm').submit(function() /* Clear all error messages. */ $('input[name^=begins]').each(function() { - var beginDateID = $(this).attr('id'); + var beginDateID = $(this).attr('id').replace(/\[|]/g, ''); var endDateID = beginDateID.replace('begins', 'ends'); $('#help' + beginDateID).remove(); $('#help' + endDateID).remove(); @@ -164,7 +164,7 @@ $('#executionForm').submit(function() $('input[name^=begins]').each(function() { var beginDate = $(this).val(); - var beginDateID = $(this).attr('id'); + var beginDateID = $(this).attr('id').replace(/\[|]/g, ''); var nameID = beginDateID.replace('begins', 'names'); var endDateID = beginDateID.replace('begins', 'ends');