mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 13:59:23 +00:00
Avatar can be dynamicaly changed
This commit is contained in:
parent
be1bda5b0b
commit
22ec2dca70
@ -95,6 +95,14 @@ ComunicWeb.components.menuBar.authenticated = {
|
|||||||
userNameElem.innerHTML = "Loading...";
|
userNameElem.innerHTML = "Loading...";
|
||||||
|
|
||||||
//Make a request to get informations about the user
|
//Make a request to get informations about the user
|
||||||
|
ComunicWeb.user.getUserInfos.getUserInfos("current", (function(userInfos){
|
||||||
|
|
||||||
|
//Change user name
|
||||||
|
userNameElem.innerHTML = userInfos.firstName + " "+ userInfos.lastName;
|
||||||
|
|
||||||
|
//Change avatar url
|
||||||
|
userimage.src = userInfos.accountImage;
|
||||||
|
|
||||||
|
}));
|
||||||
},
|
},
|
||||||
};
|
};
|
@ -13,6 +13,9 @@ ComunicWeb.pages.home.landingPage = {
|
|||||||
//Log action
|
//Log action
|
||||||
ComunicWeb.debug.logMessage("Open home landing page.");
|
ComunicWeb.debug.logMessage("Open home landing page.");
|
||||||
|
|
||||||
|
//Change page title
|
||||||
|
document.title = "Comunic, a transparent social network";
|
||||||
|
|
||||||
//Prepare additional data
|
//Prepare additional data
|
||||||
var additionalData = {};
|
var additionalData = {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user