mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Display friends and groups
This commit is contained in:
		@@ -1217,6 +1217,20 @@ var ComunicWeb = {
 | 
			
		||||
			},
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		/**
 | 
			
		||||
		 * Web application interface
 | 
			
		||||
		 */
 | 
			
		||||
		webApp: {
 | 
			
		||||
 | 
			
		||||
			/**
 | 
			
		||||
			 * Web app interface
 | 
			
		||||
			 */
 | 
			
		||||
			interface: {
 | 
			
		||||
				//TODO : implement
 | 
			
		||||
			},
 | 
			
		||||
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		/**
 | 
			
		||||
		 * Easter egg : pacman
 | 
			
		||||
		 */
 | 
			
		||||
 
 | 
			
		||||
@@ -236,7 +236,7 @@ ComunicWeb.common.page = {
 | 
			
		||||
                var pageTarget = createElem("div", mainContainerElem);
 | 
			
		||||
                pageTarget.id = "pageTarget";
 | 
			
		||||
            }
 | 
			
		||||
            else{
 | 
			
		||||
            else {
 | 
			
		||||
                //We can empty page target (much faster)
 | 
			
		||||
                pageTarget.innerHTML = "";
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -44,6 +44,7 @@ function createElem(nodeType, appendTo){
 | 
			
		||||
 * @info {String} innerHTMLprefix Specify prefix to add at the begining of the content of the element
 | 
			
		||||
 * @info {boolean} disabled Set whether the field should be disabled or not (input only)
 | 
			
		||||
 * @info {HTMLElement[]} children Children for the new object
 | 
			
		||||
 * @info {Function} onclick
 | 
			
		||||
 * @return {HTMLElement} The newly created element
 | 
			
		||||
 */
 | 
			
		||||
function createElem2(infos){
 | 
			
		||||
@@ -129,6 +130,9 @@ function createElem2(infos){
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if(infos.onclick)
 | 
			
		||||
		newElem.addEventListener("click", infos.onclick);
 | 
			
		||||
 | 
			
		||||
	//Return newly created element
 | 
			
		||||
	return newElem;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user