Implement popup boxes to change titles
This commit is contained in:
@@ -83,6 +83,16 @@ class Ajax extends CI_Controller {
|
||||
$this->output->set_output(auto_typography($data['description']));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $experimentId
|
||||
*/
|
||||
public function rename_experiment($experimentId) {
|
||||
$this->load->model('experiment');
|
||||
$this->experiment->update(array('name' => $this->input->post('title')), $experimentId);
|
||||
$this->output->set_output(site_url('experiments/detail/' . $experimentId));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sorts a programs parameters.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user