mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-29 23:36:27 +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 a new mail value
|
||||||
*/
|
*/
|
||||||
set: function(mail){},
|
set: function(mail){},
|
||||||
}
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Search form component
|
||||||
|
*/
|
||||||
|
searchForm: {
|
||||||
|
//TODO : implement
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -123,8 +123,8 @@ ComunicWeb.components.menuBar.authenticated = {
|
|||||||
*/
|
*/
|
||||||
addSearchForm: function(navbarElem){
|
addSearchForm: function(navbarElem){
|
||||||
//Create form element
|
//Create form element
|
||||||
var searchForm = createElem("form", navbarElem.parentNode);
|
var searchForm = createElem("li", navbarElem);
|
||||||
searchForm.className = "navbar-form navbar-left";
|
searchForm.className = "dropdown navbar-form navbar-left";
|
||||||
searchForm.setAttribute("role", "search");
|
searchForm.setAttribute("role", "search");
|
||||||
|
|
||||||
//Create form group
|
//Create form group
|
||||||
|
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
|
//Components
|
||||||
"%PATH_ASSETS%js/components/mailCaching.js",
|
"%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/common.js",
|
||||||
"%PATH_ASSETS%js/components/menuBar/notAuthenticated.js",
|
"%PATH_ASSETS%js/components/menuBar/notAuthenticated.js",
|
||||||
"%PATH_ASSETS%js/components/menuBar/authenticated.js",
|
"%PATH_ASSETS%js/components/menuBar/authenticated.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user