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 if (typeof( _this.data.source) == 'undefined') {
54 success : function(res, o)
56 Roo.docs.ViewSource.show({
57 source : String.format("<PRE>{0}</PRE>",res.responseText),
58 fname : _this.data.src.split('/').pop()
69 _this.body_ctr.el.dom.innerHTML = _this.data.source;
70 _this.body_ctr.el.dom.scrollTop = 0;
71 _this.dialog.setTitle("View Source: " + _this.data.fname);
72 _this.dialog.el.setStyle('zIndex', '10002');
77 '|xns' : 'Roo.bootstrap',
81 html : _this._strings['d3d2e617335f08df83599665eef8a418'] /* Close */,
84 click : function (_self, e)
90 render : function (_self)
92 _this.acceptBtn = this;
97 '|xns' : 'Roo.bootstrap'
103 style : 'width: 100%;overflow:auto;height:100%;',
105 render : function (_self)
107 _this.body_ctr = this;
111 '|xns' : 'Roo.bootstrap'
117 Roo.apply(Roo.docs.ViewSource, Roo.docs.ViewSource.prototype);