diff --git a/src/caw/html/js/ui.js b/src/caw/html/js/ui.js index 5d3031d..d0e8ddd 100644 --- a/src/caw/html/js/ui.js +++ b/src/caw/html/js/ui.js @@ -1072,6 +1072,25 @@ function ui_destroy( d ) ele.parentElement.removeChild( ele ) } +// Remove all children from the selected element +function ui_empty( d ) +{ + var ele = dom_id_to_ele(d.uuId.toString()) + + if( ele == null ) + console.log("ele to empty not found"); + + if( ele != null) + { + let i = 0; + let n = ele.children.length; + for(i=0; i