Pman.Dialog.PersonEditor.bjs
[Pman.BAdmin] / Pman.Dialog.PersonEditor.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.PersonEditor= function() {}
8 Roo.apply(Pman.Dialog.PersonEditor.prototype, {
9
10  _strings : {
11   '11dcfc58d8c9aed80d13d85369b854db' :"Person Editor"
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['11dcfc58d8c9aed80d13d85369b854db'] /* Person Editor */,
40     listeners : {
41      render : function (_self)
42       {
43           _this.modal = _self;
44       }
45     },
46     xns : Roo.bootstrap,
47     '|xns' : 'Roo.bootstrap',
48     items  : [
49      {
50       xtype : 'Form',
51       xns : Roo.bootstrap,
52       '|xns' : 'Roo.bootstrap'
53      },
54      {
55       xtype : 'Button',
56       xns : Roo.bootstrap,
57       '|xns' : 'Roo.bootstrap'
58      }
59     ]
60    }  );
61  }
62 });
63 Roo.apply(Pman.Dialog.PersonEditor, Pman.Dialog.PersonEditor.prototype);