Created components section

This commit is contained in:
Pierre 2017-05-22 18:06:17 +02:00
parent c33809cb3a
commit 9d0572cfa7
4 changed files with 317 additions and 307 deletions

View File

@ -310,9 +310,9 @@ var ComunicWeb = {
},
/**
* Pages controllers
* Application components
*/
pages:{
components: {
/**
* Menubar
@ -321,6 +321,14 @@ var ComunicWeb = {
//TODO: implement
},
},
/**
* Pages controllers
*/
pages:{
/**
* Home page
*/

View File

@ -172,7 +172,7 @@ ComunicWeb.common.page = {
document.body.className="hold-transition skin-blue layout-top-nav";
//We load the menubar
ComunicWeb.pages.menuBar.display();
ComunicWeb.components.menuBar.display();
}
//Check if some additionnal data was specified

View File

@ -4,7 +4,7 @@
* @author Pierre HUBERT
*/
ComunicWeb.pages.menuBar = {
ComunicWeb.components.menuBar = {
/**
* Display menu bar
*

View File

@ -52,13 +52,15 @@ $config['JSfiles'] = array(
"%PATH_ASSETS%js/common/formChecker.js",
"%PATH_ASSETS%js/common/system.js",
//Components
"%PATH_ASSETS%js/components/menuBar.js",
//User scripts
"%PATH_ASSETS%js/user/loginTokens.js",
"%PATH_ASSETS%js/user/userLogin.js",
"%PATH_ASSETS%js/user/userInfos.js",
//Pages scripts
"%PATH_ASSETS%js/pages/menuBar.js",
"%PATH_ASSETS%js/pages/home/home.js",
"%PATH_ASSETS%js/pages/login.js",
"%PATH_ASSETS%js/pages/logout.js",