X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=Pman.Dialog.CoreEmailPreview.bjs;h=1bea89d7f57d48d1c2f3503920467b24b50588bc;hp=487e3f8ccf3c398947e9540770cacb66f3711222;hb=HEAD;hpb=8aaf10479f82971bb171b1bf8a97e63d54ad7809 diff --git a/Pman.Dialog.CoreEmailPreview.bjs b/Pman.Dialog.CoreEmailPreview.bjs index 487e3f8c..1bea89d7 100644 --- a/Pman.Dialog.CoreEmailPreview.bjs +++ b/Pman.Dialog.CoreEmailPreview.bjs @@ -1,64 +1,116 @@ { - "id": "roo-file-316", - "name": "Pman.Dialog.CoreEmailPreview", - "parent": "", - "title": "", - "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.CoreEmailPreview.bjs", - "items": [ - { - "listeners": { - "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}" - }, - "autoScroll": true, - "closable": true, - "height": 800, - "shadow": "true", - "title": "Email Preview", - "width": 1200, - "xtype": "LayoutDialog", - "|xns": "Roo", - "items": [ - { - "*prop": "center", - "autoScroll": true, - "tabPosition": "top", - "xtype": "LayoutRegion", - "|xns": "Roo" - }, - { - "listeners": { - "render": "function (_self)\n{\n _this.panel = _self;\n}" - }, - "fitContainer": true, - "fitToFrame": true, - "region": "center", - "title": "Plain", - "xtype": "ContentPanel", - "|xns": "Roo" - }, - { - "listeners": { - "render": "function (_self)\n{\n _this.hpanel = _self;\n}" - }, - "fitContainer": true, - "fitToFrame": true, - "region": "center", - "title": "HTML", - "xtype": "ContentPanel", - "|xns": "Roo" - }, - { - "listeners": { - "click": "function (_self, e)\n{\n _this.dialog.hide();\n}" - }, - "*prop": "buttons[]", - "text": "OK", - "xtype": "Button", - "|xns": "Roo" - } - ] - } - ], - "permname": "", - "modOrder": "001" + "items" : [ + { + "$ xns" : "Roo", + "autoScroll" : true, + "closable" : true, + "height" : 800, + "items" : [ + { + "$ xns" : "Roo", + "* prop" : "center", + "autoScroll" : true, + "tabPosition" : "top", + "xtype" : "LayoutRegion" + }, + { + "$ xns" : "Roo", + "fitContainer" : true, + "fitToFrame" : true, + "listeners" : { + "render" : [ + "function (_self)", + "{", + " _this.hpanel = _self;", + "}" + ] + }, + "region" : "center", + "title" : "HTML", + "xtype" : "ContentPanel" + }, + { + "$ xns" : "Roo", + "fitContainer" : true, + "fitToFrame" : true, + "listeners" : { + "render" : [ + "function (_self)", + "{", + " _this.panel = _self;", + "}" + ] + }, + "region" : "center", + "title" : "Plain", + "xtype" : "ContentPanel" + }, + { + "$ xns" : "Roo", + "* prop" : "buttons[]", + "listeners" : { + "click" : [ + "function (_self, e)", + "{", + " _this.dialog.hide();", + "}" + ] + }, + "text" : "OK", + "xtype" : "Button" + } + ], + "listeners" : { + "show" : [ + "function (_self)", + "{", + " ", + " _self.layout.getRegion('center').showPanel(0);", + " _this.panel.load({ ", + " url: baseURL + '/Core/MessagePreview', ", + " params : {", + " _id : _this.data.id || '',", + " template_name : _this.data.template_name || '', ", + " _table : _this.data.module,", + " ontable : _this.data.ontable || '',", + " onid : _this.data.onid || '',", + " evtype : _this.data.evtype || ''", + " },", + " method : 'GET'", + " });", + " _this.hpanel.load({ ", + " url: baseURL + '/Core/MessagePreview', ", + " params : {", + " _as_html : 1,", + " _id : _this.data.id || '',", + " template_name : _this.data.template_name || '',", + " _table : _this.data.module,", + " ontable : _this.data.ontable || '',", + " onid : _this.data.onid || '',", + " evtype : _this.data.evtype || ''", + " },", + " method : 'GET'", + " });", + " ", + "}" + ] + }, + "shadow" : true, + "title" : "Email Preview", + "width" : 1200, + "xtype" : "LayoutDialog" + } + ], + "modOrder" : "001", + "name" : "Pman.Dialog.CoreEmailPreview", + "parent" : "", + "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreEmailPreview.bjs", + "permname" : "", + "strings" : { + "006c82ffdd63692a84a259c4f8732842" : "Email Preview", + "4c4ad5fca2e7a3f74dbb1ced00381aa4" : "HTML", + "4cd8413207629a963225f4314b53adcd" : "Plain", + "e0aa021e21dddbd6d8cecec71e9cf564" : "OK" + }, + "title" : "" } \ No newline at end of file