Pman.Dialog.CoreEmailPreview.bjs
[Pman.Core] / Pman.Dialog.CoreEmailPreview.bjs
1 {
2     "id": "roo-file-316",
3     "name": "Pman.Dialog.CoreEmailPreview",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreEmailPreview.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "show": "function (_self)\n{\n    var m = 'Core';\n    \n    if(_this.data.module == 'crm_mailing_list_message'){\n        m = 'Crm';\n    }\n\n    _self.layout.getRegion('center').showPanel(0);\n    _this.panel.load({ \n        url: baseURL + '/' + m + '/MessagePreview', \n        params  : {\n            _id : _this.data.id\n        },\n        method : 'GET'\n    });\n    _this.hpanel.load({ \n        url: baseURL + '/' + m + '/MessagePreview', \n        params  : {\n            _as_html : 1,\n            _id : _this.data.id\n        },\n        method : 'GET'\n    });\n        \n}"
11             },
12             "autoScroll": true,
13             "closable": true,
14             "height": 800,
15             "shadow": "true",
16             "title": "Email Preview",
17             "width": 1200,
18             "xtype": "LayoutDialog",
19             "|xns": "Roo",
20             "items": [
21                 {
22                     "*prop": "center",
23                     "autoScroll": true,
24                     "tabPosition": "top",
25                     "xtype": "LayoutRegion",
26                     "|xns": "Roo"
27                 },
28                 {
29                     "listeners": {
30                         "render": "function (_self)\n{\n    _this.panel = _self;\n}"
31                     },
32                     "fitContainer": true,
33                     "fitToFrame": true,
34                     "region": "center",
35                     "title": "Plain",
36                     "xtype": "ContentPanel",
37                     "|xns": "Roo"
38                 },
39                 {
40                     "listeners": {
41                         "render": "function (_self)\n{\n    _this.hpanel = _self;\n}"
42                     },
43                     "fitContainer": true,
44                     "fitToFrame": true,
45                     "region": "center",
46                     "title": "HTML",
47                     "xtype": "ContentPanel",
48                     "|xns": "Roo"
49                 },
50                 {
51                     "listeners": {
52                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
53                     },
54                     "*prop": "buttons[]",
55                     "text": "OK",
56                     "xtype": "Button",
57                     "|xns": "Roo"
58                 }
59             ]
60         }
61     ],
62     "permname": "",
63     "modOrder": "001"
64 }