Pman.Dialog.CoreImportUrl.bjs
[Pman.Core] / Pman.Dialog.CoreImportUrl.bjs
1 {
2     "id": "roo-file-316",
3     "name": "Pman.Dialog.CoreImportUrl",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreImportUrl.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "draggable": false,
12             "height": 140,
13             "modal": true,
14             "resizable": false,
15             "title": "Import URL",
16             "width": 500,
17             "xtype": "LayoutDialog",
18             "|xns": "Roo",
19             "items": [
20                 {
21                     "|xns": "Roo",
22                     "xtype": "LayoutRegion",
23                     "*prop": "center"
24                 },
25                 {
26                     "region": "center",
27                     "xtype": "ContentPanel",
28                     "|xns": "Roo",
29                     "items": [
30                         {
31                             "listeners": {
32                                 "actioncomplete": "function (_self, action)\n{\n     if (action.type == 'setdata') {\r\n       // _this.dialog.el.mask(\"Loading\");\r\n       // if(_this.data.id*1 > 0)\r\n       //     this.load({ method: 'GET', params: { '_id' : _this.data.id }});\r\n       \r\n       return;\r\n    }\r\n    if (action.type == 'load') {\r\n \r\n        return;\r\n    }\r\n    if (action.type =='submit') {\r\n    \r\n        //action.result.data\r\n        _this.dialog.hide();\r\n    //    Roo.log(_this.callback);\r\n         if (_this.callback) {\r\n            _this.callback.call(_this, action.result.data);\r\n         }\r\n         _this.form.reset();\r\n         return;\r\n    }\n}",
33                                 "rendered": "function (form)\n{\n    _this.form= form;\n}"
34                             },
35                             "method": "POST",
36                             "style": "margin:10px;",
37                             "xtype": "Form",
38                             "|url": "baseURL + '/Crm/ImportHtml.php'",
39                             "|xns": "Roo.form",
40                             "items": [
41                                 {
42                                     "fieldLabel": "URL",
43                                     "name": "importUrl",
44                                     "vtype": "url",
45                                     "width": 250,
46                                     "xtype": "TextField",
47                                     "|xns": "Roo.form"
48                                 }
49                             ]
50                         }
51                     ]
52                 },
53                 {
54                     "listeners": {
55                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
56                     },
57                     "*prop": "buttons[]",
58                     "text": "Cancel",
59                     "xtype": "Button",
60                     "|xns": "Roo"
61                 },
62                 {
63                     "listeners": {
64                         "click": "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n}"
65                     },
66                     "*prop": "buttons[]",
67                     "text": "OK",
68                     "xtype": "Button",
69                     "|xns": "Roo"
70                 }
71             ]
72         }
73     ],
74     "permname": "",
75     "modOrder": "001"
76 }