Pman.Tab.CmsBlog.bjs
[Pman.Cms] / Pman.Dialog.CmsImage.bjs
1 {
2     "id": "roo-file-125",
3     "name": "Pman.Dialog.CmsImage",
4     "parent": "",
5     "title": "Cms - Edit Image",
6     "path": "/home/chris/gitlive/Pman.Cms/Pman.Dialog.CmsImage.bjs",
7     "items": [
8         {
9             "xtype": "LayoutDialog",
10             "|xns": "Roo",
11             "background": true,
12             "width": 450,
13             "height": 120,
14             "title": "Edit Image Details",
15             "modal": true,
16             "resizable": false,
17             "collapsible": false,
18             "closable": false,
19             "listeners": {},
20             "items": [
21                 {
22                     "xtype": "LayoutRegion",
23                     "*prop": "center",
24                     "titlebar": false,
25                     "|xns": "Roo"
26                 },
27                 {
28                     "xtype": "ContentPanel",
29                     "background": true,
30                     "fitToFrame": true,
31                     "region": "center",
32                     "listeners": {},
33                     "|xns": "Roo",
34                     "items": [
35                         {
36                             "listeners": {
37                                 "|actionfailed": "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Pman.standardActionFailed(_self, action);\n}\n",
38                                 "|actioncomplete": "function (_self, action)\n{\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",
39                                 "|rendered": "function (_self)\n{\n    _this.form = _self;\n}\n"
40                             },
41                             "method": "POST",
42                             "style": "margin: 5px",
43                             "xtype": "Form",
44                             "|url": "baseURL + '/Roo/Images.php'",
45                             "|xns": "Roo.form",
46                             "items": [
47                                 {
48                                     "name": "linkurl",
49                                     "fieldLabel": "Link URL",
50                                     "width": 300,
51                                     "xtype": "TextField",
52                                     "listeners": {},
53                                     "vtype": "url",
54                                     "|xns": "Roo.form"
55                                 },
56                                 {
57                                     "name": "id",
58                                     "xtype": "Hidden",
59                                     "listeners": {},
60                                     "|xns": "Roo.form"
61                                 }
62                             ]
63                         }
64                     ]
65                 },
66                 {
67                     "text": "Cancel",
68                     "xtype": "Button",
69                     "|xns": "Roo",
70                     "listeners": {
71                         "|click": " function() {\n\n                                    _this.form.reset();\n\n                                    _this.dialog.hide();\n\n                                }\n"
72                     },
73                     "*prop": "buttons[]"
74                 },
75                 {
76                     "listeners": {
77                         "|click": " function() {\n\n                                    _this.dialog.el.mask(\"Saving\");\n\n                                    _this.form.doAction(\"submit\");\n\n                                }\n"
78                     },
79                     "*prop": "buttons[]",
80                     "text": "OK",
81                     "xtype": "Button",
82                     "|xns": "Roo"
83                 }
84             ]
85         }
86     ],
87     "permname": "",
88     "modOrder": "001"
89 }