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({
42 title : _this._strings['89babd10371e21bb9eaf39937de7c656'] /* View Source */,
44 show : function (_self)
46 // if(_this.data.buttonText){
47 // _this.acceptBtn.setText(_this.data.buttonText);
50 _this.body_ctr.el.dom.innerHTML = _this.data.source;
51 _this.body_ctr.el.dom.scrollTop = 0;
52 _this.dialog.setTitle("View Source: " + _this.data.fname);
53 _this.dialog.el.setStyle('zIndex', '10002');
58 '|xns' : 'Roo.bootstrap',
62 html : _this._strings['d3d2e617335f08df83599665eef8a418'] /* Close */,
65 click : function (_self, e)
71 render : function (_self)
73 _this.acceptBtn = this;
78 '|xns' : 'Roo.bootstrap'
84 style : 'width: 100%;overflow:auto;height:100%;',
86 render : function (_self)
88 _this.body_ctr = this;
92 '|xns' : 'Roo.bootstrap'
98 Roo.apply(Roo.docs.ViewSource, Roo.docs.ViewSource.prototype);