mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 05:49:22 +00:00
Created searchForm file
This commit is contained in:
parent
2836de9ab6
commit
d52b167ae1
@ -427,7 +427,14 @@ var ComunicWeb = {
|
||||
* Set a new mail value
|
||||
*/
|
||||
set: function(mail){},
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Search form component
|
||||
*/
|
||||
searchForm: {
|
||||
//TODO : implement
|
||||
},
|
||||
|
||||
|
||||
},
|
||||
|
@ -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
|
||||
@ -137,6 +137,6 @@ ComunicWeb.components.menuBar.authenticated = {
|
||||
searchInput.placeholder = "Search...";
|
||||
searchInput.type = "text";
|
||||
searchInput.id = "navbar-search-input";
|
||||
|
||||
|
||||
}
|
||||
};
|
14
assets/js/components/searchForm/searchForm.js
Normal file
14
assets/js/components/searchForm/searchForm.js
Normal file
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Search form component
|
||||
*
|
||||
* @author Pierre HUBERT
|
||||
*/
|
||||
|
||||
ComunicWeb.components.searchForm = {
|
||||
/**
|
||||
* Initializate a search form element
|
||||
*
|
||||
* @param {HTMLElement}
|
||||
*/
|
||||
|
||||
}
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user