Pman.Dialog.CoreEmailPreview.bjs
authorAlan <alan@roojs.com>
Thu, 29 Sep 2022 07:37:22 +0000 (15:37 +0800)
committerAlan <alan@roojs.com>
Thu, 29 Sep 2022 07:37:22 +0000 (15:37 +0800)
Pman.Dialog.CoreEmailPreview.js

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

index f732c67..1bea89d 100644 (file)
@@ -69,7 +69,8 @@
      "    _this.panel.load({ ",
      "        url: baseURL + '/Core/MessagePreview', ",
      "        params  : {",
-     "            _id : _this.data.id,",
+     "            _id : _this.data.id || '',",
+     "            template_name : _this.data.template_name || '',            ",
      "            _table : _this.data.module,",
      "            ontable : _this.data.ontable || '',",
      "            onid : _this.data.onid || '',",
@@ -81,7 +82,8 @@
      "        url: baseURL + '/Core/MessagePreview', ",
      "        params  : {",
      "            _as_html : 1,",
-     "            _id : _this.data.id,",
+     "            _id : _this.data.id || '',",
+     "            template_name : _this.data.template_name || '',",
      "            _table : _this.data.module,",
      "            ontable : _this.data.ontable || '',",
      "            onid : _this.data.onid  || '',",
index cc545bf..5acb548 100644 (file)
@@ -52,7 +52,8 @@ Pman.Dialog.CoreEmailPreview = {
           _this.panel.load({ 
               url: baseURL + '/Core/MessagePreview', 
               params  : {
-                  _id : _this.data.id,
+                  _id : _this.data.id || '',
+                  template_name : _this.data.template_name || '',            
                   _table : _this.data.module,
                   ontable : _this.data.ontable || '',
                   onid : _this.data.onid || '',
@@ -64,7 +65,8 @@ Pman.Dialog.CoreEmailPreview = {
               url: baseURL + '/Core/MessagePreview', 
               params  : {
                   _as_html : 1,
-                  _id : _this.data.id,
+                  _id : _this.data.id || '',
+                  template_name : _this.data.template_name || '',
                   _table : _this.data.module,
                   ontable : _this.data.ontable || '',
                   onid : _this.data.onid  || '',