mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Created searchForm file
This commit is contained in:
		@@ -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
 | 
				
			||||||
@@ -137,6 +137,6 @@ ComunicWeb.components.menuBar.authenticated = {
 | 
				
			|||||||
		searchInput.placeholder = "Search...";
 | 
							searchInput.placeholder = "Search...";
 | 
				
			||||||
		searchInput.type = "text";
 | 
							searchInput.type = "text";
 | 
				
			||||||
		searchInput.id = "navbar-search-input";
 | 
							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
 | 
					    //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",
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user