* [task#142101,done,1h,0h] Finish progranplan gantt critical path.
This commit is contained in:
@@ -225,11 +225,11 @@ function getByIdForGantt(list, id)
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function updateCriticalPath()
|
||||
window.updateCriticalPath = function()
|
||||
{
|
||||
let showCriticalPath = !gantt.config.highlight_critical_path;
|
||||
|
||||
$('#criticalPath').html(showCriticalPath ? ganttLang.hideCriticalPath : ganttLang.showCriticalP);
|
||||
$('#criticalPath').html(showCriticalPath ? ganttLang.hideCriticalPath : ganttLang.showCriticalPath);
|
||||
gantt.config.highlight_critical_path = showCriticalPath;
|
||||
|
||||
gantt.render();
|
||||
|
||||
@@ -31,6 +31,7 @@ if($app->rawModule == 'programplan')
|
||||
}
|
||||
featureBar
|
||||
(
|
||||
btn(setID('criticalPath'), setClass('ghost mr-2'), $lang->execution->gantt->showCriticalPath, set::url('javascript:updateCriticalPath()')),
|
||||
btn(setClass('ghost mr-2', ($browseType != 'bysearch' ? 'active' : '')), $lang->programplan->gantt, set::url($this->createLink('programplan', 'browse', "projectID=$projectID&productID=$productID&type=gantt"))),
|
||||
$productDropdown,
|
||||
$hasSearch ? li(searchToggle(set::module('projectTask'), set::open($browseType == 'bysearch'))) : null
|
||||
|
||||
Reference in New Issue
Block a user