Pman.Dialog.CoreEmail.bjs
authoredward <edward@roojs.com>
Mon, 18 Jul 2016 08:09:59 +0000 (16:09 +0800)
committeredward <edward@roojs.com>
Mon, 18 Jul 2016 08:09:59 +0000 (16:09 +0800)
Pman.Dialog.CoreEmail.js

Pman.Dialog.CoreEmail.bjs
Pman.Dialog.CoreEmail.js

index f54f3d6..de4cd99 100644 (file)
     {
      "listeners" : {
       "render" : "function (_self)\n{\n    _this.html_preview = _self;\n}",
-      "click" : "function (_self, e)\n{\n    //_this.dialog.hide();\n    \n    var id = _this.form.findField('id').getValue();\n    \n    if(id*1 < 1){\n        Roo.MessageBox.alert('Error', 'Please save the message frist!');\n        return;\n    }\n   \n    Roo.log(_this.data);return;\n    \n    new Pman.Request({\n        url : baseURL + '/Core/MessagePreview',\n        method : 'POST',\n        mask: 'Sending',\n        params : {\n            _id : id,\n            _table : _this.data.module\n        }, \n        success : function(res) { \n            if(res.data == 'SUCCESS'){\n                Roo.MessageBox.alert(\"Email Sent\", 'The report was sent to your email (HTML format).');\n            }\n        }\n    });\n}"
+      "click" : "function (_self, e)\n{\n    //_this.dialog.hide();\n    \n    var id = _this.form.findField('id').getValue();\n    \n    if(id*1 < 1){\n        Roo.MessageBox.alert('Error', 'Please save the message frist!');\n        return;\n    }\n   \n    new Pman.Request({\n        url : baseURL + '/Core/MessagePreview',\n        method : 'POST',\n        mask: 'Sending',\n        params : {\n            _id : id,\n            _table : _this.data.module\n        }, \n        success : function(res) { \n            if(res.data == 'SUCCESS'){\n                Roo.MessageBox.alert(\"Email Sent\", 'The report was sent to your email (HTML format).');\n            }\n        }\n    });\n}"
      },
      "text" : "Send me a test copy",
      "xtype" : "Button",
index 613ae63..1e27604 100644 (file)
@@ -161,8 +161,6 @@ Pman.Dialog.CoreEmail = {
                 return;
             }
            
-            Roo.log(_this.data);return;
-            
             new Pman.Request({
                 url : baseURL + '/Core/MessagePreview',
                 method : 'POST',