Pman.Dialog.BAdminEmailPreview.bjs
[Pman.BAdmin] / Pman.Dialog.BAdminEmailPreview.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('Pman.Dialog');
6
7 Pman.Dialog.BAdminEmailPreview= function() {}
8 Roo.apply(Pman.Dialog.BAdminEmailPreview.prototype, {
9
10  _strings : {
11   '10e0d90d01ee3b134ee40b7ad31566a4' :"Message Preview",
12   '4cd8413207629a963225f4314b53adcd' :"Plain",
13   '4c4ad5fca2e7a3f74dbb1ced00381aa4' :"HTML"
14  },
15
16  dialog : false,
17  callback:  false,
18
19  show : function(data, cb)
20  {
21   if (!this.dialog) {
22    this.create();
23   }
24
25   this.callback = cb;
26   this.data = data;
27   this.dialog.show(this.data._el);
28   if (this.form) {
29    this.form.reset();
30    this.form.setValues(data);
31    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
32   }
33
34  },
35
36  create : function()
37  {
38   var _this = this;
39   this.dialog = Roo.factory({
40     xtype : 'Modal',
41     title : _this._strings['10e0d90d01ee3b134ee40b7ad31566a4'] /* Message Preview */,
42     listeners : {
43      show : function (_self)
44       {
45       /*
46           _this.panel.load({
47               url: baseURL + '/Core/MessagePreview', 
48               params  : {
49                   _id : _this.data.id,
50                   _table : _this.data.module
51               },
52               method : 'GET'
53           });
54           
55           _this.hpanel.load({
56               url: baseURL + '/Core/MessagePreview', 
57               params  : {
58                   _as_html : 1,
59                   _id : _this.data.id,
60                   _table : _this.data.module
61               },
62               method : 'GET'
63           });
64       */
65       }
66     },
67     xns : Roo.bootstrap,
68     '|xns' : 'Roo.bootstrap',
69     items  : [
70      {
71       xtype : 'Border',
72       xns : Roo.bootstrap.layout,
73       '|xns' : 'Roo.bootstrap.layout',
74       center : {
75        xtype : 'Region',
76        alwaysShowTabs : true,
77        autoScroll : true,
78        tabPosition : 'top',
79        xns : Roo.bootstrap.layout,
80        '|xns' : 'Roo.bootstrap.layout'
81       },
82       items  : [
83        {
84         xtype : 'Content',
85         region : 'center',
86         title : _this._strings['4cd8413207629a963225f4314b53adcd'] /* Plain */,
87         listeners : {
88          render : function (_self)
89           {
90               _this.panel = this;
91           }
92         },
93         xns : Roo.bootstrap.panel,
94         '|xns' : 'Roo.bootstrap.panel'
95        },
96        {
97         xtype : 'Content',
98         background : true,
99         region : 'center',
100         title : _this._strings['4c4ad5fca2e7a3f74dbb1ced00381aa4'] /* HTML */,
101         listeners : {
102          render : function (_self)
103           {
104               _this.hpanel = this;
105           }
106         },
107         xns : Roo.bootstrap.panel,
108         '|xns' : 'Roo.bootstrap.panel'
109        }
110       ]
111      }
112     ]
113    }  );
114  }
115 });
116 Roo.apply(Pman.Dialog.BAdminEmailPreview, Pman.Dialog.BAdminEmailPreview.prototype);