* [feedback#7592,done,1h] Add empty row and display add action.

This commit is contained in:
daitingting
2024-12-13 15:20:09 +08:00
committed by 綦新志
parent 20fdaa51a4
commit 85e68adb84
2 changed files with 3 additions and 7 deletions
+1 -5
View File
@@ -2,11 +2,7 @@ window.onRenderRow = function(row, rowIdx, data)
{
if(row.children('[data-name=milestone]').find('input[type=radio]:checked').length == 0) row.children('[data-name=milestone]').find('input[type=radio]').eq(1).prop('checked', true);
row.children('[data-name=type]').find('[name^=type]').picker({disabled: true});
if(typeof data != 'undefined' && typeof data.id != 'undefined')
{
row.find('[data-type="delete"]').css('display', 'none');
row.find('[data-type="add"]').css('display', 'none');
}
if(typeof data != 'undefined' && typeof data.id != 'undefined') row.find('[data-type="delete"]').css('display', 'none');
if(project.model == 'ipd' && planID == '0')
{