diff --git a/core/modules/widgets/view.js b/core/modules/widgets/view.js index 7398a7da8..55fb51f7e 100755 --- a/core/modules/widgets/view.js +++ b/core/modules/widgets/view.js @@ -30,9 +30,14 @@ ViewWidget.prototype.render = function(parent,nextSibling) { this.parentDomNode = parent; this.computeAttributes(); this.execute(); - var textNode = this.document.createTextNode(this.text); - parent.insertBefore(textNode,nextSibling); - this.domNodes.push(textNode); + if(this.text) { + var textNode = this.document.createTextNode(this.text); + parent.insertBefore(textNode,nextSibling); + this.domNodes.push(textNode); + } else { + this.makeChildWidgets(); + this.renderChildren(parent,nextSibling); + } }; /* diff --git a/core/ui/PageMacros.tid b/core/ui/PageMacros.tid index 312312f5c..0cdaefc1f 100644 --- a/core/ui/PageMacros.tid +++ b/core/ui/PageMacros.tid @@ -1,7 +1,7 @@ title: $:/core/ui/PageMacros \define tabs(tabsList,default,state:"$:/currentTab") -