Pman.Dialog.CoreEmailPreview.bjs
authorjohn <john@roojs.com>
Tue, 9 Jan 2018 14:20:44 +0000 (22:20 +0800)
committerjohn <john@roojs.com>
Tue, 9 Jan 2018 14:20:44 +0000 (22:20 +0800)
Pman.Dialog.CoreEmailPreview.js

Pman.Dialog.CoreEmailPreview.bjs
Pman.Dialog.CoreEmailPreview.js

index e6ad5aa..addc15a 100644 (file)
@@ -1,64 +1,69 @@
 {
-    "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    \n    _self.layout.getRegion('center').showPanel(0);\n    _this.panel.load({ \n        url: baseURL + '/Core/MessagePreview', \n        params  : {\n            _id : _this.data.id,\n            _table : _this.data.module\n        },\n        method : 'GET'\n    });\n    _this.hpanel.load({ \n        url: baseURL + '/Core/MessagePreview', \n        params  : {\n            _as_html : 1,\n            _id : _this.data.id,\n            _table : _this.data.module\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"
+ "name" : "Pman.Dialog.CoreEmailPreview",
+ "parent" : "",
+ "title" : "",
+ "path" : "/home/johns/gitlive/Pman.Core/Pman.Dialog.CoreEmailPreview.bjs",
+ "permname" : "",
+ "modOrder" : "001",
+ "strings" : {
+  "4cd8413207629a963225f4314b53adcd" : "Plain",
+  "4c4ad5fca2e7a3f74dbb1ced00381aa4" : "HTML",
+  "006c82ffdd63692a84a259c4f8732842" : "Email Preview",
+  "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
+ },
+ "items" : [
+  {
+   "listeners" : {
+    "show" : "function (_self)\n{\n    \n    _self.layout.getRegion('center').showPanel(0);\n    _this.panel.load({ \n        url: baseURL + '/Core/MessagePreview', \n        params  : {\n            _id : _this.data.id,\n            _table : _this.data.module\n        },\n        method : 'GET'\n    });\n    _this.hpanel.load({ \n        url: baseURL + '/Core/MessagePreview', \n        params  : {\n            _as_html : 1,\n            _id : _this.data.id,\n            _table : _this.data.module\n        },\n        method : 'GET'\n    });\n        \n}"
+   },
+   "shadow" : true,
+   "autoScroll" : true,
+   "title" : "Email Preview",
+   "xtype" : "LayoutDialog",
+   "width" : 1200,
+   "$ xns" : "Roo",
+   "closable" : true,
+   "height" : 800,
+   "items" : [
+    {
+     "autoScroll" : true,
+     "xtype" : "LayoutRegion",
+     "tabPosition" : "top",
+     "$ xns" : "Roo",
+     "* prop" : "center"
+    },
+    {
+     "listeners" : {
+      "render" : "function (_self)\n{\n    _this.panel = _self;\n}"
+     },
+     "region" : "center",
+     "fitToFrame" : true,
+     "title" : "Plain",
+     "xtype" : "ContentPanel",
+     "fitContainer" : true,
+     "$ xns" : "Roo"
+    },
+    {
+     "listeners" : {
+      "render" : "function (_self)\n{\n    _this.hpanel = _self;\n}"
+     },
+     "region" : "center",
+     "fitToFrame" : true,
+     "title" : "HTML",
+     "xtype" : "ContentPanel",
+     "fitContainer" : true,
+     "$ xns" : "Roo"
+    },
+    {
+     "listeners" : {
+      "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
+     },
+     "text" : "OK",
+     "xtype" : "Button",
+     "$ xns" : "Roo",
+     "* prop" : "buttons[]"
+    }
+   ]
+  }
+ ]
 }
\ No newline at end of file
index fb7c4ad..c045eb0 100644 (file)
 
 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
 
+Roo.namespace('Pman.Dialog');
+
 Pman.Dialog.CoreEmailPreview = {
 
-    dialog : false,
-    callback:  false,
+ _strings : {
+  '4cd8413207629a963225f4314b53adcd' :"Plain",
+  '4c4ad5fca2e7a3f74dbb1ced00381aa4' :"HTML",
+  '006c82ffdd63692a84a259c4f8732842' :"Email Preview",
+  'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
+ },
 
-    show : function(data, cb)
-    {
-        if (!this.dialog) {
-            this.create();
-        }
+ dialog : false,
+ callback:  false,
 
-        this.callback = cb;
-        this.data = data;
-        this.dialog.show(this.data._el);
-        if (this.form) {
-           this.form.reset();
-           this.form.setValues(data);
-           this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
-        }
+ show : function(data, cb)
+ {
+  if (!this.dialog) {
+   this.create();
+  }
 
-    },
+  this.callback = cb;
+  this.data = data;
+  this.dialog.show(this.data._el);
+  if (this.form) {
+   this.form.reset();
+   this.form.setValues(data);
+   this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
+  }
+
+ },
 
-    create : function()
-    {
-        var _this = this;
-        this.dialog = Roo.factory({
-            xtype: 'LayoutDialog',
-            xns: Roo,
-            listeners : {
-                show : function (_self)
-                {
-                    
-                    _self.layout.getRegion('center').showPanel(0);
-                    _this.panel.load({ 
-                        url: baseURL + '/Core/MessagePreview', 
-                        params  : {
-                            _id : _this.data.id,
-                            _table : _this.data.module
-                        },
-                        method : 'GET'
-                    });
-                    _this.hpanel.load({ 
-                        url: baseURL + '/Core/MessagePreview', 
-                        params  : {
-                            _as_html : 1,
-                            _id : _this.data.id,
-                            _table : _this.data.module
-                        },
-                        method : 'GET'
-                    });
-                        
-                }
-            },
-            autoScroll : true,
-            closable : true,
-            height : 800,
-            shadow : 'true',
-            title : "Email Preview",
-            width : 1200,
-            items : [
-                {
-                    xtype: 'ContentPanel',
-                    xns: Roo,
-                    listeners : {
-                        render : function (_self)
-                        {
-                            _this.panel = _self;
-                        }
-                    },
-                    fitContainer : true,
-                    fitToFrame : true,
-                    region : 'center',
-                    title : "Plain"
-                },
-                {
-                    xtype: 'ContentPanel',
-                    xns: Roo,
-                    listeners : {
-                        render : function (_self)
-                        {
-                            _this.hpanel = _self;
-                        }
-                    },
-                    fitContainer : true,
-                    fitToFrame : true,
-                    region : 'center',
-                    title : "HTML"
-                }
-            ],
-            center : {
-                xtype: 'LayoutRegion',
-                xns: Roo,
-                autoScroll : true,
-                tabPosition : 'top'
-            },
-            buttons : [
-                {
-                    xtype: 'Button',
-                    xns: Roo,
-                    listeners : {
-                        click : function (_self, e)
-                        {
-                            _this.dialog.hide();
-                        }
-                    },
-                    text : "OK"
-                }
-            ]
-        });
-    }
+ create : function()
+ {
+   var _this = this;
+   this.dialog = Roo.factory({
+    xtype : 'LayoutDialog',
+    autoScroll : true,
+    closable : true,
+    height : 800,
+    shadow : true,
+    title : _this._strings['006c82ffdd63692a84a259c4f8732842'] /* Email Preview */,
+    width : 1200,
+    listeners : {
+     show : function (_self)
+      {
+          
+          _self.layout.getRegion('center').showPanel(0);
+          _this.panel.load({ 
+              url: baseURL + '/Core/MessagePreview', 
+              params  : {
+                  _id : _this.data.id,
+                  _table : _this.data.module
+              },
+              method : 'GET'
+          });
+          _this.hpanel.load({ 
+              url: baseURL + '/Core/MessagePreview', 
+              params  : {
+                  _as_html : 1,
+                  _id : _this.data.id,
+                  _table : _this.data.module
+              },
+              method : 'GET'
+          });
+              
+      }
+    },
+    xns : Roo,
+    '|xns' : 'Roo',
+    center : {
+     xtype : 'LayoutRegion',
+     autoScroll : true,
+     tabPosition : 'top',
+     xns : Roo,
+     '|xns' : 'Roo'
+    },
+    buttons : [
+     {
+      xtype : 'Button',
+      text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'] /* OK */,
+      listeners : {
+       click : function (_self, e)
+        {
+            _this.dialog.hide();
+        }
+      },
+      xns : Roo,
+      '|xns' : 'Roo'
+     }
+    ],
+    items  : [
+     {
+      xtype : 'ContentPanel',
+      fitContainer : true,
+      fitToFrame : true,
+      region : 'center',
+      title : _this._strings['4cd8413207629a963225f4314b53adcd'] /* Plain */,
+      listeners : {
+       render : function (_self)
+        {
+            _this.panel = _self;
+        }
+      },
+      xns : Roo,
+      '|xns' : 'Roo'
+     },
+     {
+      xtype : 'ContentPanel',
+      fitContainer : true,
+      fitToFrame : true,
+      region : 'center',
+      title : _this._strings['4c4ad5fca2e7a3f74dbb1ced00381aa4'] /* HTML */,
+      listeners : {
+       render : function (_self)
+        {
+            _this.hpanel = _self;
+        }
+      },
+      xns : Roo,
+      '|xns' : 'Roo'
+     }
+    ]
+   });
+ }
 };