mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Conversation update form : user automaticaly selected
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user