From 2012b82ac96b2071954de251d16913e2c6b08966 Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Wed, 14 Sep 2011 05:50:11 +0200 Subject: [PATCH] Fix output of AJAX functions for the in-place editor --- application/controllers/ajax.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/controllers/ajax.php b/application/controllers/ajax.php index a00d1bf..bcd23d2 100644 --- a/application/controllers/ajax.php +++ b/application/controllers/ajax.php @@ -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'])); } /**