Use jTip to show parameter description
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
* Controller for Ajax requests.
|
||||
*
|
||||
* @author Karsten Heiken <karsten@disposed.de>
|
||||
* @author Eike Foken <kontakt@eikefoken.de>
|
||||
*/
|
||||
class Ajax extends CI_Controller {
|
||||
|
||||
@@ -64,4 +65,15 @@ class Ajax extends CI_Controller {
|
||||
$this->parameter->sort($this->input->post('parameters'));
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* Displays the description of parameters.
|
||||
*/
|
||||
public function parameter_help($parameterId) {
|
||||
$this->load->model('parameter');
|
||||
$this->load->helper('typography');
|
||||
|
||||
$parameter = $this->parameter->getById($parameterId);
|
||||
$this->output->set_output(auto_typography($parameter['description']));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user