Fix output of AJAX functions for the in-place editor

This commit is contained in:
Eike Foken
2011-09-14 05:50:11 +02:00
parent 3c07b448c0
commit 2012b82ac9

View File

@@ -60,11 +60,12 @@ class Ajax extends CI_Controller {
*/
public function update_project($projectId) {
$this->load->model('project');
$this->load->helper('typography');
$data['description'] = $this->input->post('description');
$this->project->update($data, $projectId);
$this->output->set_output($data['description']);
$this->output->set_output(auto_typography($data['description']));
}
/**
@@ -74,11 +75,12 @@ class Ajax extends CI_Controller {
*/
public function update_experiment($experimentId) {
$this->load->model('experiment');
$this->load->helper('typography');
$data['description'] = $this->input->post('description');
$this->experiment->update($data, $experimentId);
$this->output->set_output($data['description']);
$this->output->set_output(auto_typography($data['description']));
}
/**