From 8c88f570ab2acf1daee30471ac74a4b5b1f26e02 Mon Sep 17 00:00:00 2001 From: Eike Foken Date: Wed, 28 Sep 2011 19:48:46 +0200 Subject: [PATCH] Create view for jTip content --- application/controllers/ajax.php | 2 +- application/views/global/parameter_help.php | 4 ++++ assets/css/style.css | 8 ++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 application/views/global/parameter_help.php diff --git a/application/controllers/ajax.php b/application/controllers/ajax.php index 344c9f1..cc494b2 100644 --- a/application/controllers/ajax.php +++ b/application/controllers/ajax.php @@ -148,7 +148,7 @@ class Ajax extends MY_Controller { $this->load->helper('typography'); $parameter = $this->parameter->getById($parameterId); - $this->output->set_output(auto_typography($parameter['description'])); + $this->output->set_output($this->load->view('global/parameter_help', $parameter, true)); } } diff --git a/application/views/global/parameter_help.php b/application/views/global/parameter_help.php new file mode 100644 index 0000000..f0d4264 --- /dev/null +++ b/application/views/global/parameter_help.php @@ -0,0 +1,4 @@ + + + + diff --git a/assets/css/style.css b/assets/css/style.css index 4844caa..2f9f157 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -896,7 +896,7 @@ div.progress_bar strong { } #jt_copy { - padding: 10px; + padding: 4px; color: #666; } @@ -904,11 +904,15 @@ div.progress_bar strong { background: url(../images/ajax-loader.gif) center center no-repeat; width: 100%; height: 12px; + margin: 6px; } #jt_copy p { margin: 0; - line-height: 12px; +} + +#jt_copy strong { + font-size: 11px; } #jt_copy img {