mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +00:00
Open user page shorcut
This commit is contained in:
parent
710470aae6
commit
7506222d15
@ -31,6 +31,16 @@ function openPage(pageURI, additionnalData){
|
||||
return ComunicWeb.common.page.openPage(pageURI, additionnalData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Open a user page quickly
|
||||
*
|
||||
* @param {String} user The ID of the user or its directory
|
||||
* @return {Boolean} True for a success
|
||||
*/
|
||||
function openUserPage(user){
|
||||
return openPage("user/" + user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is signed in or not
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user