Roo/bootstrap/MasonryBrick.js
authoredward <edward@roojs.com>
Tue, 17 Oct 2017 05:35:37 +0000 (13:35 +0800)
committeredward <edward@roojs.com>
Tue, 17 Oct 2017 05:35:37 +0000 (13:35 +0800)
Roo/bootstrap/MasonryBrick.js

index 9ff99e8..2a5f528 100644 (file)
@@ -244,23 +244,21 @@ Roo.extend(Roo.bootstrap.MasonryBrick, Roo.bootstrap.Component,  {
             cfg.href = this.href;
         }
         
-        var cn = cfg.cn[0].cn[0].cn;
-        
         if(this.title.length){
-            cn.push({
+            cfg.cn[0].cn[0].cn.push({
                 tag: 'h4',
                 cls: 'masonry-brick-title',
                 html: this.title
             });
         }
         
-//        if(this.html.length){
-//            cn.push({
-//                tag: 'p',
-//                cls: 'masonry-brick-text',
-//                html: this.html
-//            });
-//        }  
+        if(this.html.length){
+            cfg.cn[1].cn.push({
+                tag: 'p',
+                cls: 'masonry-brick-text',
+                html: this.html
+            });
+        }  
 //        
 //        if (!this.title.length && !this.html.length) {
 //            cfg.cn[0].cls += ' hide';