Pman.Dialog.AdminEnumType.bjs
[Pman.Admin] / Pman.Dialog.AdminEnumType.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.AdminEnumType = {
8
9     dialog : false,
10     callback:  false,
11
12     show : function(data, cb)
13     {
14         if (!this.dialog) {
15             this.create();
16         }
17
18         this.callback = cb;
19         this.data = data;
20         this.dialog.show(this.data._el);
21         if (this.form) {
22            this.form.reset();
23            this.form.setValues(data);
24            this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
25         }
26
27     },
28
29     create : function()
30     {
31         var _this = this;
32         this.dialog = Roo.factory({
33             '|xns' : 'Roo',
34             xtype : 'LayoutDialog',
35             xns : Roo,
36             items : [
37                 {
38                     '|xns' : 'Roo',
39                     xtype : 'LayoutRegion',
40                     xns : Roo,
41                     title : "Edit"
42                 },
43                 {
44                     '|xns' : 'Roo',
45                     xtype : 'ContentPanel',
46                     xns : Roo,
47                     items : [
48                         {
49                             '|xns' : 'Roo.form',
50                             xtype : 'Form',
51                             xns : Roo.form
52                         }
53                     ]
54
55                 }
56             ]
57
58         });
59     }
60 };