mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Improved intervals
This commit is contained in:
		@@ -61,12 +61,15 @@ ComunicWeb.components.friends.bar = {
 | 
				
			|||||||
		//Refresh friends list
 | 
							//Refresh friends list
 | 
				
			||||||
		this.refresh(listFriendsElem);
 | 
							this.refresh(listFriendsElem);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Make the friend bar automaticaly refreshed (if the interval wasn't already defined)
 | 
							//Remove previously existing interval
 | 
				
			||||||
		if(!this.refreshInterval)
 | 
							if(this.refreshInterval)
 | 
				
			||||||
			this.refreshInterval = setInterval(function(){
 | 
								clearInterval(this.refreshInterval);
 | 
				
			||||||
				if(byId("friendsList"))
 | 
					
 | 
				
			||||||
					ComunicWeb.components.friends.bar.refresh(listFriendsElem);
 | 
							//Make the friend bar automaticaly refreshed
 | 
				
			||||||
			}, 1000);
 | 
							this.refreshInterval = setInterval(function(){
 | 
				
			||||||
 | 
								if(byId("friendsList"))
 | 
				
			||||||
 | 
									ComunicWeb.components.friends.bar.refresh(listFriendsElem);
 | 
				
			||||||
 | 
							}, 15000);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		//Success
 | 
							//Success
 | 
				
			||||||
		return true;
 | 
							return true;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user