Show conversation members

This commit is contained in:
Pierre
2017-06-17 10:09:37 +02:00
parent e83b13b3d8
commit 6e89fe632c
3 changed files with 124 additions and 4 deletions

View File

@ -32,6 +32,7 @@ function createElem(nodeType, appendTo){
* @info {HTMLElement} id The ID of the new element
* @info {HTMLElement} title The title of the new element
* @info {HTMLElement} src The src attribute of the new element
* @info {HTMLElement} innerHTML Specify the html content of the newly created element
* @return {HTMLElement} The newly created element
*/
function createElem2(infos){
@ -62,6 +63,10 @@ function createElem2(infos){
if(infos.src)
newElem.src = infos.src;
//Specify node content
if(infos.innerHTML)
newElem.innerHTML = infos.innerHTML;
//Return newly created element
return newElem;
}