1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Roo.docs');
7 Roo.docs.ViewSource= function() {}
8 Roo.apply(Roo.docs.ViewSource.prototype, {
11 'd3d2e617335f08df83599665eef8a418' :"Close",
12 '89babd10371e21bb9eaf39937de7c656' :"View Source"
18 show : function(data, cb)
26 this.dialog.show(this.data._el);
29 this.form.setValues(data);
30 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
38 this.dialog = Roo.factory({
43 title : _this._strings['89babd10371e21bb9eaf39937de7c656'] /* View Source */,
45 show : function (_self)
47 // if(_this.data.buttonText){
48 // _this.acceptBtn.setText(_this.data.buttonText);
51 if (typeof( _this.data.source) == 'undefined') {
55 success : function(res, o)
57 Roo.docs.ViewSource.show({
58 source : String.format("<PRE>{0}</PRE>",res.responseText),
59 fname : _this.data.src.split('/').pop()
70 _this.body_ctr.el.dom.innerHTML = _this.data.source;
71 _this.body_ctr.el.dom.scrollTop = 0;
72 _this.dialog.setTitle("View Source: " + _this.data.fname);
73 _this.dialog.el.setStyle('zIndex', '10002');
78 '|xns' : 'Roo.bootstrap',
82 html : _this._strings['d3d2e617335f08df83599665eef8a418'] /* Close */,
85 click : function (_self, e)
91 render : function (_self)
93 _this.acceptBtn = this;
98 '|xns' : 'Roo.bootstrap'
104 style : 'width: 100%;overflow:auto;height:100%;',
106 render : function (_self)
108 _this.body_ctr = this;
112 '|xns' : 'Roo.bootstrap'
118 Roo.apply(Roo.docs.ViewSource, Roo.docs.ViewSource.prototype);