php7 fixes
[Pman.Builder] / Pman.Dialog.BuilderPart.bjs
1 {
2     "id": "roo-file-161",
3     "name": "Pman.Dialog.BuilderPart",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderPart.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 120,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit / Create Part",
15             "width": 450,
16             "xtype": "LayoutDialog",
17             "|xns": "Roo",
18             "items": [
19                 {
20                     "|xns": "Roo",
21                     "xtype": "LayoutRegion",
22                     "*prop": "center"
23                 },
24                 {
25                     "region": "center",
26                     "xtype": "ContentPanel",
27                     "|xns": "Roo",
28                     "items": [
29                         {
30                             "listeners": {
31                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n        if (_this.data.id * 1) {   \n            this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n            return;\n        }\n       return;\n    }\n    if (action.type == 'load') {\n         \n        return;\n    }\n    if (action.type =='submit') {\n     \n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
32                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
33                             },
34                             "method": "POST",
35                             "style": "margin:10px;",
36                             "xtype": "Form",
37                             "|url": "baseURL + '/Roo/builder_part.php'",
38                             "|xns": "Roo.form",
39                             "items": [
40                                 {
41                                     "fieldLabel": "Part name",
42                                     "name": "name",
43                                     "width": 300,
44                                     "xtype": "TextField",
45                                     "|xns": "Roo.form"
46                                 },
47                                 {
48                                     "name": "module_id",
49                                     "xtype": "Hidden",
50                                     "|xns": "Roo.form"
51                                 },
52                                 {
53                                     "name": "id",
54                                     "|xns": "Roo.form",
55                                     "xtype": "Hidden"
56                                 }
57                             ]
58                         }
59                     ]
60                 },
61                 {
62                     "listeners": {
63                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
64                     },
65                     "*prop": "buttons[]",
66                     "text": "Cancel",
67                     "xtype": "Button",
68                     "|xns": "Roo"
69                 },
70                 {
71                     "listeners": {
72                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n     \n    _this.form.doAction(\"submit\");\n\n}"
73                     },
74                     "*prop": "buttons[]",
75                     "text": "Save",
76                     "xtype": "Button",
77                     "|xns": "Roo"
78                 }
79             ]
80         }
81     ],
82     "permname": "",
83     "modOrder": "001"
84 }