X-Git-Url: https://dev.renevier.net/?a=blobdiff_plain;f=application%2Fcontrollers%2FAccountController.php;h=5f20cc73849b863932ed287f6a8676abaf044945;hb=d6940ce6e0ae4424d32efd66edc743d337dc3cf8;hp=57ea4d41d04be8c489a63181d8db3ad7e4bf7a34;hpb=8e7d8e39a2ee5801a2f68b95cdc0e84b55da1019;p=syj.git diff --git a/application/controllers/AccountController.php b/application/controllers/AccountController.php index 57ea4d4..5f20cc7 100644 --- a/application/controllers/AccountController.php +++ b/application/controllers/AccountController.php @@ -7,10 +7,8 @@ class AccountController extends Zend_Controller_Action public function init() { $this->_helper->SyjSession->needsLogin(); + $this->_helper->SyjMedias->addScripts('account'); - $this->view->headScript()->appendFile('js/prototype.js'); - $this->view->headScript()->appendFile('js/utils.js'); - $this->view->headScript()->appendFile('js/account.js'); $this->view->headLink()->appendStylesheet('css/generic.css', 'all'); $this->view->headLink()->appendStylesheet('css/account.css', 'all'); $this->view->headTitle($this->view->translate("my account")); @@ -68,7 +66,7 @@ class AccountController extends Zend_Controller_Action protected function _jsLocaleStrings() { $this->view->jslocales = array( - 'notEmptyField' => __("Value is required and can't be empty"), + 'notEmptyField' => __("Value is required"), 'passwordNoMatchWarn' => __("Password do not match"), 'passwordLenghtWarn' => array(__("At least %d characters"), 6), 'nochangeWarn' => __("You have made no change"),