* Toggle the enable/disable status of the fields on the stages creation page.

This commit is contained in:
chentao
2023-07-18 09:05:47 +08:00
parent 96f7927a43
commit eedaf68939
2 changed files with 20 additions and 15 deletions
+8 -1
View File
@@ -2,7 +2,14 @@ window.onRenderRow = function(row, rowIdx, data)
{
if(!data || !data.planIDList) return;
row.children('.form-batch-row-actions').children('[data-type=delete]').remove();
row.children('.form-batch-row-actions').children('[data-type=delete]').addClass('hidden');
row.children('[data-name=type]').children('select').attr('disabled', 'disabled');
/* Use the flag variable 'setMilestone' to toggle the enable/disable status of the milestone field. */
if(!data.setMilestone)
{
row.children('[data-name=milestone]').children('select').attr('disabled', 'disabled');
}
};
window.onChangeExecutionType = function(event)