Improve detail page for projects

This commit is contained in:
Eike Foken
2011-09-15 02:57:54 +02:00
parent fda37578cb
commit 5069b49b95
3 changed files with 46 additions and 33 deletions

View File

@@ -68,6 +68,16 @@ class Ajax extends CI_Controller {
$this->output->set_output(auto_typography($data['description']));
}
/**
*
* @param string $experimentId
*/
public function rename_project($projectId) {
$this->load->model('project');
$this->project->update(array('name' => $this->input->post('title')), $projectId);
$this->output->set_output(site_url('projects/detail/' . $projectId));
}
/**
* Saves the experiments description.
*