This commit is contained in:
王怡栋
2022-11-21 13:23:13 +08:00
parent 3852627523
commit 111f145d61
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -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>";
}
/**
+12
View File
@@ -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);
}