* [refac bug #57537] Adjust code for check has child task when batch create task.

This commit is contained in:
wangyidong
2024-11-29 10:47:25 +08:00
committed by 孙广明
parent 6b6639d613
commit f823f164db
+1 -1
View File
@@ -274,6 +274,6 @@ window.handleRenderRow = function($row, index)
/* 创建隐藏表单域用于向服务器提交当前行层级信息。 */
$row.find(nestedTextSelector).attr('title', text).text(text).append(`<input type="hidden" name="level[${index + 1}]" value="${level}">`);
$row.find('.form-batch-col-actions').addClass('is-pinned');
if($prevRow.length && $prevRow.attr('data-level') == level) $prevRow.find('input[data-name="estimate"]').prop('readonly', false); // 如果没有子任务,重置预计字段的可编辑状态。
if($prevRow.length && $prevRow.attr('data-level') >= level) $prevRow.find('input[data-name="estimate"]').prop('readonly', false); // 如果没有子任务,重置预计字段的可编辑状态。
if(edition == 'open' && (level > 0 || parentID)) $row.find('button[data-type=addSub]').attr('disabled', 'disabled');
};