* [feedback#7592,done,1h] Add empty row and display add action.
This commit is contained in:
@@ -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')
|
||||
{
|
||||
|
||||
@@ -224,8 +224,7 @@ $fnGenerateDefaultData = function() use ($config, $plans, $planID, $stages, $exe
|
||||
|
||||
$items[] = $item;
|
||||
}
|
||||
|
||||
return $items;
|
||||
$items[] = array();
|
||||
}
|
||||
|
||||
/* Create stages for exist project. */
|
||||
@@ -265,6 +264,7 @@ $fnGenerateDefaultData = function() use ($config, $plans, $planID, $stages, $exe
|
||||
$items[] = $plan;
|
||||
}
|
||||
|
||||
$items[] = array();
|
||||
return $items;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user