Conversation update form : user automaticaly selected

This commit is contained in:
Pierre
2017-06-17 16:37:40 +02:00
parent 37b07b9676
commit 6408ab9b23
3 changed files with 47 additions and 0 deletions

View File

@ -33,6 +33,7 @@ function createElem(nodeType, appendTo){
* @info {HTMLElement} title The title of the new element
* @info {HTMLElement} src The src attribute of the new element
* @info {HTMLElement} type The type of the new element
* @info {HTMLElement} value The value of the new element
* @info {HTMLElement} innerHTML Specify the html content of the newly created element
* @return {HTMLElement} The newly created element
*/
@ -68,6 +69,10 @@ function createElem2(infos){
if(infos.type)
newElem.type = infos.type;
//Specify element value
if(infos.value)
newElem.value = infos.value;
//Specify node content
if(infos.innerHTML)
newElem.innerHTML = infos.innerHTML;