mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Created new shorcut to open groups quickly
This commit is contained in:
@ -54,6 +54,20 @@ function openUserPageFromID(user){
|
||||
return openPage("user/" + user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Open a group age
|
||||
*
|
||||
* @param {Object} info Information about the target group
|
||||
*/
|
||||
function openGroupPage(info){
|
||||
|
||||
if(info.virtual_directory != "null")
|
||||
openPage(info.virtual_directory);
|
||||
else
|
||||
openPage("groups/" + info.id);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is signed in or not
|
||||
*
|
||||
|
Reference in New Issue
Block a user