Pman.Dialog.Image.bjs
[Pman.BAdmin] / Pman.Dialog.Image.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.Image= function() {}
8 Roo.apply(Pman.Dialog.Image.prototype, {
9
10
11
12  dialog : false,
13  callback:  false,
14
15  show : function(data, cb)
16  {
17   if (!this.dialog) {
18    this.create();
19   }
20
21   this.callback = cb;
22   this.data = data;
23   this.dialog.show(this.data._el);
24   if (this.form) {
25    this.form.reset();
26    this.form.setValues(data);
27    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
28   }
29
30  },
31
32  create : function()
33  {
34   var _this = this;
35   this.dialog = Roo.factory({
36     xtype : 'Modal',
37     xns : Roo.bootstrap,
38     '|xns' : 'Roo.bootstrap',
39     items  : [
40      {
41       xtype : 'Container',
42       style : 'width: 100%',
43       xns : Roo.bootstrap,
44       '|xns' : 'Roo.bootstrap',
45       items  : [
46        {
47         xtype : 'Form',
48         xns : Roo.bootstrap,
49         '|xns' : 'Roo.bootstrap',
50         items  : [
51          {
52           xtype : 'Row',
53           xns : Roo.bootstrap,
54           '|xns' : 'Roo.bootstrap',
55           items  : [
56            {
57             xtype : 'Column',
58             xns : Roo.bootstrap,
59             '|xns' : 'Roo.bootstrap',
60             items  : [
61              {
62               xtype : 'Input',
63               xns : Roo.bootstrap,
64               '|xns' : 'Roo.bootstrap'
65              }
66             ]
67            },
68            {
69             xtype : 'Column',
70             xns : Roo.bootstrap,
71             '|xns' : 'Roo.bootstrap'
72            }
73           ]
74          }
75         ]
76        }
77       ]
78      }
79     ]
80    }  );
81  }
82 });
83 Roo.apply(Pman.Dialog.Image, Pman.Dialog.Image.prototype);