mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-03 19:54:14 +00:00 
			
		
		
		
	Created friends list modal script file
This commit is contained in:
		@@ -108,13 +108,20 @@ ComunicWeb.pages.userPage.profileInfos = {
 | 
			
		||||
			type: "b",
 | 
			
		||||
			innerHTML: "Friends"
 | 
			
		||||
		});
 | 
			
		||||
		createElem2({
 | 
			
		||||
		var friendsListLink = createElem2({
 | 
			
		||||
			appendTo: friendsLi,
 | 
			
		||||
			type: "a",
 | 
			
		||||
			class: "pull-right",
 | 
			
		||||
			innerHTML: infos.number_friends
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		//Make the user number lives
 | 
			
		||||
		friendsListLink.onclick = function(){
 | 
			
		||||
 | 
			
		||||
			ComunicWeb.components.friends.listModal.display(infos.userID);
 | 
			
		||||
 | 
			
		||||
		};
 | 
			
		||||
 | 
			
		||||
		//Add user status informations (if required)
 | 
			
		||||
		if(signed_in()){
 | 
			
		||||
			if(userID() != infos.userID){
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user