Skip to content

Commit

Permalink
* Fix bug #47520.
Browse files Browse the repository at this point in the history
  • Loading branch information
王怡栋 committed Apr 11, 2024
1 parent ffef0fc commit 5e84d49
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion module/programplan/view/gantt.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
#mainContent > .pull-right > .button-group .text{margin-left: 0px;}
.pull-right .icon-plus.icon-sm:before{vertical-align: 4%;}
#ganttView .gantt_resizer{min-width: unset !important;}
div.delayed {background: #FFEBEB; color: #FB2B2B;}
</style>
<?php js::set('customUrl', $this->createLink('programplan', 'ajaxCustom'));?>
<?php js::set('dateDetails', $dateDetails);?>
Expand Down Expand Up @@ -627,7 +628,14 @@ function validateResources(id)
if(showFields.indexOf('realBegan') != -1) gantt.config.columns.push({name: 'realBegan', align: 'center', resize: true, width: 80});
if(showFields.indexOf('realEnd') != -1) gantt.config.columns.push({name: 'realEnd', align: 'center', resize: true, width: 80});
if(showFields.indexOf('consumed') != -1) gantt.config.columns.push({name: 'consumed', align: 'center', resize: true, width: 60});
if(showFields.indexOf('delay') != -1) gantt.config.columns.push({name: 'delay', align: 'center', resize: true, width: 60});
if(showFields.indexOf('delay') != -1)
{
gantt.config.columns.push({name: 'delay', align: 'center', resize: true, width: 60, template:function(item)
{
if(item.delayDays > 0) return "<div class='delayed'>" + item.delay + "</div>";
return item.delay;
}});
}
if(showFields.indexOf('delayDays') != -1) gantt.config.columns.push({name: 'delayDays', align: 'center', resize: false, width: 60});

gantt.config.layout =
Expand Down

0 comments on commit 5e84d49

Please sign in to comment.