From ba61d4c817fd590cc1b65596246bccef6d505944 Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Wed, 22 Feb 2012 19:17:11 +0000 Subject: [PATCH] Performance --- application/Bootstrap.php | 4 +--- application/modules/frontend/controllers/IndexController.php | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/application/Bootstrap.php b/application/Bootstrap.php index 9ba22030..54b6b4fd 100644 --- a/application/Bootstrap.php +++ b/application/Bootstrap.php @@ -28,9 +28,7 @@ class Bootstrap extends Zend_Application_Bootstrap_Bootstrap ->appendFile($pathScript.'/jquery.cookie.js', 'text/javascript') ->appendFile($pathScript.'/jquery-ui.js', 'text/javascript') ->appendFile($pathScript.'/jquery.qtip.js', 'text/javascript') - ->appendFile($pathScript.'/scripts.js', 'text/javascript') - ->appendFile($pathScript.'/jquery.jstree.js', 'text/javascript') - ->appendFile($pathScript.'/fields.js', 'text/javascript'); + ->appendFile($pathScript.'/scripts.js', 'text/javascript'); $view->headTitle()->setSeparator(' - '); $view->headTitle('Odea'); diff --git a/application/modules/frontend/controllers/IndexController.php b/application/modules/frontend/controllers/IndexController.php index 88df1175..8b731a26 100644 --- a/application/modules/frontend/controllers/IndexController.php +++ b/application/modules/frontend/controllers/IndexController.php @@ -4,7 +4,10 @@ Class IndexController extends Libs_Controller public function init() { - /* Initialize action controller here */ + $this->view->headScript() + ->appendFile('/themes/default/scripts/jquery.jstree.js', 'text/javascript') + ->appendFile('/themes/default/scripts/fields.js', 'text/javascript'); + /* Initialize action controller here */ } public function indexAction()