PHP8
[Pman.BAdmin] / Pman.Dialog.BAdminEmailPreview.js
index 264d646..d5e0c8f 100644 (file)
@@ -10,6 +10,7 @@ Roo.apply(Pman.Dialog.BAdminEmailPreview.prototype, {
  _strings : {
   '10e0d90d01ee3b134ee40b7ad31566a4' :"Message Preview",
   '4cd8413207629a963225f4314b53adcd' :"Plain",
+  'd3d2e617335f08df83599665eef8a418' :"Close",
   '4c4ad5fca2e7a3f74dbb1ced00381aa4' :"HTML"
  },
 
@@ -38,10 +39,12 @@ Roo.apply(Pman.Dialog.BAdminEmailPreview.prototype, {
   var _this = this;
   this.dialog = Roo.factory({
     xtype : 'Modal',
+    fitwindow : true,
     title : _this._strings['10e0d90d01ee3b134ee40b7ad31566a4'] /* Message Preview */,
     listeners : {
      show : function (_self)
       {
+      
           _this.panel.load({
               url: baseURL + '/Core/MessagePreview', 
               params  : {
@@ -50,6 +53,7 @@ Roo.apply(Pman.Dialog.BAdminEmailPreview.prototype, {
               },
               method : 'GET'
           });
+          
           _this.hpanel.load({
               url: baseURL + '/Core/MessagePreview', 
               params  : {
@@ -59,23 +63,49 @@ Roo.apply(Pman.Dialog.BAdminEmailPreview.prototype, {
               },
               method : 'GET'
           });
+      
       }
     },
     xns : Roo.bootstrap,
     '|xns' : 'Roo.bootstrap',
+    buttons : [
+     {
+      xtype : 'Button',
+      html : _this._strings['d3d2e617335f08df83599665eef8a418'] /* Close */,
+      name : 'close',
+      listeners : {
+       click : function (_self, e)
+        {
+            _this.dialog.hide();
+        }
+      },
+      xns : Roo.bootstrap,
+      '|xns' : 'Roo.bootstrap'
+     }
+    ],
     items  : [
      {
       xtype : 'Border',
       xns : Roo.bootstrap.layout,
       '|xns' : 'Roo.bootstrap.layout',
+      center : {
+       xtype : 'Region',
+       alwaysShowTabs : true,
+       autoScroll : true,
+       tabPosition : 'top',
+       xns : Roo.bootstrap.layout,
+       '|xns' : 'Roo.bootstrap.layout'
+      },
       items  : [
        {
         xtype : 'Content',
+        autoScroll : true,
+        region : 'center',
         title : _this._strings['4cd8413207629a963225f4314b53adcd'] /* Plain */,
         listeners : {
          render : function (_self)
           {
-              _this.panel = _self;
+              _this.panel = this;
           }
         },
         xns : Roo.bootstrap.panel,
@@ -83,11 +113,14 @@ Roo.apply(Pman.Dialog.BAdminEmailPreview.prototype, {
        },
        {
         xtype : 'Content',
+        autoScroll : true,
+        background : true,
+        region : 'center',
         title : _this._strings['4c4ad5fca2e7a3f74dbb1ced00381aa4'] /* HTML */,
         listeners : {
          render : function (_self)
           {
-              _this.hpanel = _self;
+              _this.hpanel = this;
           }
         },
         xns : Roo.bootstrap.panel,