mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Can open user page from virtual directory name
This commit is contained in:
@ -390,6 +390,11 @@ var ComunicWeb = {
|
||||
*/
|
||||
getNames: function(usersID, afterNames){},
|
||||
|
||||
/**
|
||||
* Get the user ID specified by its folder name
|
||||
*/
|
||||
getIDfromPath: function(path, callback){},
|
||||
|
||||
/**
|
||||
* Empty users cache
|
||||
*/
|
||||
@ -629,7 +634,6 @@ var ComunicWeb = {
|
||||
*/
|
||||
openHomePage: function(additionnalData, targetElement){},
|
||||
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@ -658,6 +662,11 @@ var ComunicWeb = {
|
||||
*/
|
||||
open: function(params, target){},
|
||||
|
||||
/**
|
||||
* Open user page specified by user ID
|
||||
*/
|
||||
openUserPage: function(id, params, target){},
|
||||
|
||||
},
|
||||
|
||||
},
|
||||
|
@ -31,6 +31,15 @@ function openPage(pageURI, additionnalData){
|
||||
return ComunicWeb.common.page.openPage(pageURI, additionnalData);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is signed in or not
|
||||
*
|
||||
* @return {Boolean} True if the user is signed in / false else
|
||||
*/
|
||||
function signed_in(){
|
||||
return ComunicWeb.user.userLogin.getUserLoginState();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns user ID (if logged in)
|
||||
*
|
||||
|
Reference in New Issue
Block a user