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  },
13
14  dialog : false,
15  callback:  false,
16
17  show : function(data, cb)
18  {
19   if (!this.dialog) {
20    this.create();
21   }
22
23   this.callback = cb;
24   this.data = data;
25   this.dialog.show(this.data._el);
26   if (this.form) {
27    this.form.reset();
28    this.form.setValues(data);
29    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
30   }
31
32  },
33
34  create : function()
35  {
36   var _this = this;
37   this.dialog = Roo.factory({
38     xtype : 'Modal',
39     title : _this._strings['10e0d90d01ee3b134ee40b7ad31566a4'] /* Message Preview */,
40     xns : Roo.bootstrap,
41     '|xns' : 'Roo.bootstrap',
42     items  : [
43      {
44       xtype : 'Border',
45       xns : Roo.bootstrap.layout,
46       '|xns' : 'Roo.bootstrap.layout',
47       items  : [
48        {
49         xtype : 'Content',
50         xns : Roo.bootstrap.panel,
51         '|xns' : 'Roo.bootstrap.panel'
52        },
53        {
54         xtype : 'Content',
55         xns : Roo.bootstrap.panel,
56         '|xns' : 'Roo.bootstrap.panel'
57        }
58       ]
59      }
60     ]
61    }  );
62  }
63 });
64 Roo.apply(Pman.Dialog.BAdminEmailPreview, Pman.Dialog.BAdminEmailPreview.prototype);