mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Upgraded search form component structure.
This commit is contained in:
parent
547daf4741
commit
fc8abc6d56
@ -607,8 +607,22 @@ var ComunicWeb = {
|
|||||||
/**
|
/**
|
||||||
* Search form component
|
* Search form component
|
||||||
*/
|
*/
|
||||||
searchForm: {
|
search: {
|
||||||
//TODO : implement
|
|
||||||
|
/**
|
||||||
|
* Search form
|
||||||
|
*/
|
||||||
|
form: {
|
||||||
|
//TODO : implement
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Search interface
|
||||||
|
*/
|
||||||
|
interface: {
|
||||||
|
//TODO : implement
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -220,6 +220,6 @@ ComunicWeb.components.menuBar.authenticated = {
|
|||||||
dropdownContainer.className = "dropdown-menu";
|
dropdownContainer.className = "dropdown-menu";
|
||||||
|
|
||||||
//Initializate menu
|
//Initializate menu
|
||||||
ComunicWeb.components.searchForm.init(searchInput, dropdownContainer);
|
ComunicWeb.components.search.form.init(searchInput, dropdownContainer);
|
||||||
}
|
}
|
||||||
};
|
};
|
@ -4,7 +4,7 @@
|
|||||||
* @author Pierre HUBERT
|
* @author Pierre HUBERT
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ComunicWeb.components.searchForm = {
|
ComunicWeb.components.search.form = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store the text input area
|
* Store the text input area
|
||||||
@ -45,7 +45,7 @@ ComunicWeb.components.searchForm = {
|
|||||||
|
|
||||||
//Make input text lives
|
//Make input text lives
|
||||||
textInput.onkeyup = function(){
|
textInput.onkeyup = function(){
|
||||||
ComunicWeb.components.searchForm.ontextchange(textInput, searchResultBox, searchBoxContainer, footerLink);
|
ComunicWeb.components.search.form.ontextchange(textInput, searchResultBox, searchBoxContainer, footerLink);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Cache textinput area
|
//Cache textinput area
|
||||||
@ -108,7 +108,7 @@ ComunicWeb.components.searchForm = {
|
|||||||
//We show user only if we have informations about him
|
//We show user only if we have informations about him
|
||||||
if(usersInfos["user-"+userID])
|
if(usersInfos["user-"+userID])
|
||||||
//Display user informations
|
//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
|
//Make user link element live
|
||||||
userLinkElement.onclick = function() {
|
userLinkElement.onclick = function() {
|
||||||
ComunicWeb.components.searchForm.close();
|
ComunicWeb.components.search.form.close();
|
||||||
openUserPage(userInfos);
|
openUserPage(userInfos);
|
||||||
}
|
}
|
||||||
},
|
},
|
@ -304,8 +304,10 @@ class Dev {
|
|||||||
//Mail caching
|
//Mail caching
|
||||||
"js/components/mailCaching.js",
|
"js/components/mailCaching.js",
|
||||||
|
|
||||||
|
|
||||||
//Search form
|
//Search form
|
||||||
"js/components/searchForm/searchForm.js",
|
"js/components/search/interface.js",
|
||||||
|
"js/components/search/form.js",
|
||||||
|
|
||||||
//Settings
|
//Settings
|
||||||
"js/components/settings/interface.js",
|
"js/components/settings/interface.js",
|
||||||
|
Loading…
Reference in New Issue
Block a user