php7 fixes
[Pman.Builder] / Pman.Dialog.BuilderImport.bjs
1 {
2     "id": "roo-file-544",
3     "name": "Pman.Dialog.BuilderImport",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderImport.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 330,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit / Create core_enum",
15             "width": 500,
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       \n       this.load({ method: 'GET', params: { '_id' : _this.data.id }});\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                             "labelAlign": "top",
35                             "method": "POST",
36                             "style": "margin:10px;",
37                             "xtype": "Form",
38                             "|url": "baseURL + '/Roo/builder_part'",
39                             "|xns": "Roo.form",
40                             "items": [
41                                 {
42                                     "fieldLabel": "Paste BJS code from export",
43                                     "height": 200,
44                                     "name": "json",
45                                     "width": 410,
46                                     "xtype": "TextArea",
47                                     "|xns": "Roo.form"
48                                 },
49                                 {
50                                     "name": "id",
51                                     "|xns": "Roo.form",
52                                     "xtype": "Hidden"
53                                 }
54                             ]
55                         }
56                     ]
57                 },
58                 {
59                     "listeners": {
60                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
61                     },
62                     "*prop": "buttons[]",
63                     "text": "Cancel",
64                     "xtype": "Button",
65                     "|xns": "Roo"
66                 },
67                 {
68                     "listeners": {
69                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
70                     },
71                     "*prop": "buttons[]",
72                     "text": "Save",
73                     "xtype": "Button",
74                     "|xns": "Roo"
75                 }
76             ]
77         }
78     ],
79     "permname": "",
80     "modOrder": "001"
81 }