3e2b9841881fb4cb737f2cfa415fafaca60b2321
[roojs1] / docs2 / Roo.docs.ViewSource.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Roo.namespace('Roo.docs');
6
7 Roo.docs.ViewSource= function() {}
8 Roo.apply(Roo.docs.ViewSource.prototype, {
9
10  _strings : {
11   'd3d2e617335f08df83599665eef8a418' :"Close",
12   '89babd10371e21bb9eaf39937de7c656' :"View Source"
13  },
14
15  dialog : false,
16  callback:  false,
17
18  show : function(data, cb)
19  {
20   if (!this.dialog) {
21    this.create();
22   }
23
24   this.callback = cb;
25   this.data = data;
26   this.dialog.show(this.data._el);
27   if (this.form) {
28    this.form.reset();
29    this.form.setValues(data);
30    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
31   }
32
33  },
34
35  create : function()
36  {
37   var _this = this;
38   this.dialog = Roo.factory({
39     xtype : 'Modal',
40     fit_content : true,
41     max_width : 900,
42     title : _this._strings['89babd10371e21bb9eaf39937de7c656'] /* View Source */,
43     listeners : {
44      show : function (_self)
45       {
46         //  if(_this.data.buttonText){
47           //    _this.acceptBtn.setText(_this.data.buttonText);
48          // }
49           
50            
51          
52           
53           _this.dialog.el.setStyle('zIndex', '10002');
54           
55       }
56     },
57     xns : Roo.bootstrap,
58     '|xns' : 'Roo.bootstrap',
59     buttons : [
60      {
61       xtype : 'Button',
62       html : _this._strings['d3d2e617335f08df83599665eef8a418'] /* Close */,
63       weight : 'primary',
64       listeners : {
65        click : function (_self, e)
66         {
67             _this.dialog.hide();
68          
69             
70         },
71        render : function (_self)
72         {
73             _this.acceptBtn = this;
74             
75         }
76       },
77       xns : Roo.bootstrap,
78       '|xns' : 'Roo.bootstrap'
79      }
80     ],
81     items  : [
82      {
83       xtype : 'Container',
84       style : 'width: 100%;',
85       xns : Roo.bootstrap,
86       '|xns' : 'Roo.bootstrap',
87       items  : [
88        {
89         xtype : 'Row',
90         xns : Roo.bootstrap,
91         '|xns' : 'Roo.bootstrap',
92         items  : [
93          {
94           xtype : 'Column',
95           cls : 'document-body-ctn',
96           md : 12,
97           listeners : {
98            render : function (_self)
99             {
100                 _this.body_ctr = this;
101             }
102           },
103           xns : Roo.bootstrap,
104           '|xns' : 'Roo.bootstrap'
105          }
106         ]
107        }
108       ]
109      }
110     ]
111    }  );
112  }
113 });
114 Roo.apply(Roo.docs.ViewSource, Roo.docs.ViewSource.prototype);