mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 20:35:16 +00:00
Show conversation members
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user