Pman.Dialog.CmsBlog.bjs
[Pman.Cms] / Pman.Dialog.CmsCategoryType.bjs
1 {
2     "id": "roo-file-113",
3     "name": "Pman.Dialog.CmsCategoryType",
4     "parent": "",
5     "title": "Pman.Dialog.CmsCategoryType",
6     "path": "/home/chris/gitlive/Pman.Cms/Pman.Dialog.CmsCategoryType.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "show": "function (_self)\n{\n  this.form.findField('name').focus();\n\n}"
11             },
12             "closable": false,
13             "collapsible": false,
14             "height": 120,
15             "resizable": false,
16             "title": "Edit / Create Category Type",
17             "width": 400,
18             "xtype": "LayoutDialog",
19             "|xns": "Roo",
20             "items": [
21                 {
22                     "|xns": "Roo",
23                     "xtype": "LayoutRegion",
24                     "*prop": "center"
25                 },
26                 {
27                     "region": "center",
28                     "xtype": "ContentPanel",
29                     "|xns": "Roo",
30                     "items": [
31                         {
32                             "listeners": {
33                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n       //_this.dialog.el.mask(\"Loading\");\n       //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\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",
34                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
35                             },
36                             "method": "POST",
37                             "style": "margin:10px;",
38                             "xtype": "Form",
39                             "|url": "baseURL + '/Roo/cms_category_type.php'",
40                             "|xns": "Roo.form",
41                             "items": [
42                                 {
43                                     "fieldLabel": "Name",
44                                     "name": "name",
45                                     "width": 240,
46                                     "xtype": "TextField",
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 }