remove debugging code
[roojs1] / Roo / mailer / Block.js
index 91ecdd3..6d9c47a 100644 (file)
@@ -38,9 +38,9 @@ Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component,  {
         var tr = {
             tag : 'tr',
             cls : 'roo-m-block-tr'
-        }
+        };
         if (this.blocktype != 'row') {
-           tr.cn = [
+            tr.cn = [
                 {
                     tag : 'td',
                     align : 'center',
@@ -48,7 +48,7 @@ Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component,  {
                     cls : 'roo-m-' + this.blocktype + '-content',
                     html : this.html
                 }
-           ]
+            ];
         }
         
         var cfg =   {
@@ -67,10 +67,10 @@ Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component,  {
        
         return cfg;
     },
-    getChildContainer : function()
+    getChildContainer : function(build_call)
     {
         // add a child...
-        if (this.blocktype == 'row') {
+        if (this.blocktype == 'row' && build_call) {
             var par = this.el.select(
                         '.roo-m-block-tr',true
                     ).first();
@@ -79,7 +79,7 @@ Roo.extend(Roo.mailer.Block, Roo.bootstrap.Component,  {
                     align : 'center',
                     valign : 'top',
                     style : 'padding-top : 20px;',
-                    cls : 'roo-m-column-container'
+                    cls : 'roo-m-column'
                 }
           
             );