Open user page shorcut

This commit is contained in:
Pierre 2017-12-17 19:17:03 +01:00
parent 710470aae6
commit 7506222d15

View File

@ -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
*