* fix bug #29953.
This commit is contained in:
@@ -690,10 +690,12 @@ class todo extends control
|
||||
{
|
||||
$this->session->set('project', $projectID);
|
||||
|
||||
$project = $this->loadModel('project')->getByID($projectID);
|
||||
$executions = $this->loadModel('execution')->getByProject($projectID, 'undone');
|
||||
foreach($executions as $id => $execution) $executions[$id] = $execution->name;
|
||||
|
||||
echo html::select('execution', $executions, '', "class='form-control chosen'");
|
||||
echo "<script>toggleExecution({$project->multiple});</script>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -155,3 +155,15 @@ function getProgramByProduct(productID)
|
||||
$('#productProgram').val(data);
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggle show execution.
|
||||
*
|
||||
* @param bool $multiple
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
function toggleExecution(multiple)
|
||||
{
|
||||
$('#executionIdBox').closest('tr').toggleClass('hidden', !multiple);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user