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.previewContentPanel.load({
- url: baseURL + '/Roo/Code.php',
- method: 'GET',
- params: {
- id: _this.data.id
-
- }
- });
-
+ _this.htmlContentPanel.setContent(
+ '<PRE>' + Roo.util.Format.htmlEncode(_this.data.html) + '</PRE>'
+ );
+
+ this.layout.showPanel(0)
}
},
background : true,
collapsible : false,
height : 400,
modal : true,
- resizable : false,
+ resizable : true,
title : "View Generated Code",
width : 400,
items : [
listeners : {
activate : function (_self)
{
- _this.previewContentPanel = _self;
+ _this.jsonContentPanel = _self;
}
},
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 : {