Display friends and groups

This commit is contained in:
2019-05-16 15:48:50 +02:00
parent 7e3558d5f9
commit 949e9accdd
8 changed files with 221 additions and 5 deletions

View File

@ -1217,6 +1217,20 @@ var ComunicWeb = {
},
},
/**
* Web application interface
*/
webApp: {
/**
* Web app interface
*/
interface: {
//TODO : implement
},
},
/**
* Easter egg : pacman
*/

View File

@ -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 = "";
}

View File

@ -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;
}