* Fix bug #46580.
This commit is contained in:
@@ -79,13 +79,6 @@ batchIgnoreTip = function(index)
|
||||
|
||||
window.renderRowData = function($row, index, row)
|
||||
{
|
||||
/* 如果某个项目是长期项目,更新计划完成日期和可用工作日的样式。*/
|
||||
/* If a project is a long-term project, update the style of the planned completion date and available working days. */
|
||||
if(row.end == LONG_TIME)
|
||||
{
|
||||
$row.find('[data-name="end"] [id^=end]').attr('data-longTime', 1).addClass('hidden').next().removeClass('hidden');
|
||||
$row.find('[name^=days]').val(0).attr('readonly', true);
|
||||
}
|
||||
|
||||
const aclList = !disabledprograms && row.parent ? programAclList : projectAclList;
|
||||
$row.find('[data-name="acl"]').find('.picker-box').on('inited', function(e, info)
|
||||
|
||||
@@ -87,18 +87,17 @@ formBatchPanel
|
||||
(
|
||||
set::name('end'),
|
||||
set::label($lang->project->end),
|
||||
set::control('date'),
|
||||
set::width('120px'),
|
||||
inputControl
|
||||
set::control(array
|
||||
(
|
||||
setClass('has-suffix-icon hidden'),
|
||||
to::suffix(icon('calendar')),
|
||||
input
|
||||
'control' => 'date',
|
||||
'format' => jsRaw("(value) => (value === '" . LONG_TIME . "' ? '" . $lang->project->longTime . "' : zui.formatDate(value, 'yyyy-MM-dd'))"),
|
||||
'actions' => array
|
||||
(
|
||||
set::value($lang->project->longTime),
|
||||
set::disabled(true)
|
||||
array('text' => $lang->datepicker->dpText->TEXT_TODAY, 'data-set-date' => helper::today()),
|
||||
array('text' => $lang->project->longTime, 'data-set-date' => LONG_TIME)
|
||||
)
|
||||
)
|
||||
)),
|
||||
),
|
||||
formBatchItem
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user