diff --git a/assets/js/common/functionsSchema.js b/assets/js/common/functionsSchema.js index e61f6a08..dddda147 100644 --- a/assets/js/common/functionsSchema.js +++ b/assets/js/common/functionsSchema.js @@ -607,8 +607,22 @@ var ComunicWeb = { /** * Search form component */ - searchForm: { - //TODO : implement + search: { + + /** + * Search form + */ + form: { + //TODO : implement + }, + + /** + * Search interface + */ + interface: { + //TODO : implement + } + }, /** diff --git a/assets/js/components/menuBar/authenticated.js b/assets/js/components/menuBar/authenticated.js index a224b7a9..cf60d7ec 100644 --- a/assets/js/components/menuBar/authenticated.js +++ b/assets/js/components/menuBar/authenticated.js @@ -220,6 +220,6 @@ ComunicWeb.components.menuBar.authenticated = { dropdownContainer.className = "dropdown-menu"; //Initializate menu - ComunicWeb.components.searchForm.init(searchInput, dropdownContainer); + ComunicWeb.components.search.form.init(searchInput, dropdownContainer); } }; \ No newline at end of file diff --git a/assets/js/components/searchForm/searchForm.js b/assets/js/components/search/form.js similarity index 93% rename from assets/js/components/searchForm/searchForm.js rename to assets/js/components/search/form.js index 8d8a6fbe..c44f4f24 100644 --- a/assets/js/components/searchForm/searchForm.js +++ b/assets/js/components/search/form.js @@ -4,7 +4,7 @@ * @author Pierre HUBERT */ -ComunicWeb.components.searchForm = { +ComunicWeb.components.search.form = { /** * Store the text input area @@ -45,7 +45,7 @@ ComunicWeb.components.searchForm = { //Make input text lives textInput.onkeyup = function(){ - ComunicWeb.components.searchForm.ontextchange(textInput, searchResultBox, searchBoxContainer, footerLink); + ComunicWeb.components.search.form.ontextchange(textInput, searchResultBox, searchBoxContainer, footerLink); } //Cache textinput area @@ -108,7 +108,7 @@ ComunicWeb.components.searchForm = { //We show user only if we have informations about him if(usersInfos["user-"+userID]) //Display user informations - ComunicWeb.components.searchForm.displayUser(usersInfos["user-"+userID], menuList); + ComunicWeb.components.search.form.displayUser(usersInfos["user-"+userID], menuList); } @@ -152,7 +152,7 @@ ComunicWeb.components.searchForm = { //Make user link element live userLinkElement.onclick = function() { - ComunicWeb.components.searchForm.close(); + ComunicWeb.components.search.form.close(); openUserPage(userInfos); } }, diff --git a/system/config/dev.config.php b/system/config/dev.config.php index 6593868b..f278e6fa 100644 --- a/system/config/dev.config.php +++ b/system/config/dev.config.php @@ -304,8 +304,10 @@ class Dev { //Mail caching "js/components/mailCaching.js", + //Search form - "js/components/searchForm/searchForm.js", + "js/components/search/interface.js", + "js/components/search/form.js", //Settings "js/components/settings/interface.js",