Created searchForm file

This commit is contained in:
Pierre 2017-05-26 12:01:54 +02:00
parent 2836de9ab6
commit d52b167ae1
4 changed files with 26 additions and 4 deletions

View File

@ -427,7 +427,14 @@ var ComunicWeb = {
* Set a new mail value
*/
set: function(mail){},
}
},
/**
* Search form component
*/
searchForm: {
//TODO : implement
},
},

View File

@ -123,8 +123,8 @@ ComunicWeb.components.menuBar.authenticated = {
*/
addSearchForm: function(navbarElem){
//Create form element
var searchForm = createElem("form", navbarElem.parentNode);
searchForm.className = "navbar-form navbar-left";
var searchForm = createElem("li", navbarElem);
searchForm.className = "dropdown navbar-form navbar-left";
searchForm.setAttribute("role", "search");
//Create form group

View File

@ -0,0 +1,14 @@
/**
* Search form component
*
* @author Pierre HUBERT
*/
ComunicWeb.components.searchForm = {
/**
* Initializate a search form element
*
* @param {HTMLElement}
*/
}

View File

@ -63,6 +63,7 @@ $config['JSfiles'] = array(
//Components
"%PATH_ASSETS%js/components/mailCaching.js",
"%PATH_ASSETS%js/components/searchForm/searchForm.js",
"%PATH_ASSETS%js/components/menuBar/common.js",
"%PATH_ASSETS%js/components/menuBar/notAuthenticated.js",
"%PATH_ASSETS%js/components/menuBar/authenticated.js",