php7 fixes
[Pman.Builder] / Pman.Dialog.BuilderViewCode.js
index b1ea8bc..ed66ba2 100644 (file)
@@ -37,27 +37,29 @@ Pman.Dialog.BuilderViewCode = {
                        return;
                     }
                     _this.dialog = _self;        
-                    _this.dialog.getLayout().beginUpdate();
+                    this.getLayout().beginUpdate();
                      
-                    _this.dialog.resizeTo( Roo.lib.Dom.getViewWidth() - 70, Roo.lib.Dom.getViewHeight() - 70);
-                    _this.dialog.getLayout().getRegion('center').resizeTo(Roo.lib.Dom.getViewWidth() - ( 70 + 50 ));
+                    this.resizeTo( Roo.lib.Dom.getViewWidth() - 70, Roo.lib.Dom.getViewHeight() - 70);
+                    this.getLayout().getRegion('center').resizeTo(Roo.lib.Dom.getViewWidth() - ( 70 + 50 ));
                  
                     
-                    _this.dialog.moveTo(35,35);
+                    this.moveTo(35,35);
                     
-                    _this.dialog.getLayout().endUpdate();
+                    this.getLayout().endUpdate();
                     
                     _this.previewContentPanel.setContent(
                         '<PRE>' + Roo.util.Format.htmlEncode(_this.data.jsource) + '</PRE>'
                     );
-                        
-                    
-                      
+                         
                     _this.jsonContentPanel.setContent(
                         '<PRE>' + Roo.util.Format.htmlEncode(_this.data.json) + '</PRE>'
                     );
+                    
+                     _this.htmlContentPanel.setContent(
+                        '<PRE>' + Roo.util.Format.htmlEncode(_this.data.html) + '</PRE>'
+                    );
                        
-                            
+                     this.layout.showPanel(0)     
                 }
             },
             background : true,
@@ -94,10 +96,25 @@ Pman.Dialog.BuilderViewCode = {
                         }
                     },
                     autoScroll : true,
-                    background : true,
+                    background : false,
                     fitToFrame : true,
                     region : 'center',
                     title : "JSON"
+                },
+                {
+                    xtype: 'ContentPanel',
+                    xns: Roo,
+                    listeners : {
+                        activate : function (_self)
+                        {
+                        _this.htmlContentPanel = _self;
+                        }
+                    },
+                    autoScroll : true,
+                    background : false,
+                    fitToFrame : true,
+                    region : 'center',
+                    title : "HTML"
                 }
             ],
             center : {