Pman.Dialog.CoreEmail.bjs
authorEdward <edward@roojs.com>
Tue, 8 Jul 2014 09:48:06 +0000 (17:48 +0800)
committerEdward <edward@roojs.com>
Tue, 8 Jul 2014 09:48:06 +0000 (17:48 +0800)
Pman.Dialog.CoreEmail.js

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

index 792572f..35d0886 100644 (file)
                 },
                 {
                     "listeners": {
-                        "click": "function (_self, e)\n{\n    // do some checks?\n    _this.form.preValidate(function(res) {\n        if (!res) {\n            return; //failed.\n        }\n         _this.form.doAction(\"submit\");\n    });\n\n}"
+                        "click": "function (_self, e)\n{\n_this.form.doAction(\"submit\");\nreturn;\n    // do some checks?\n    _this.form.preValidate(function(res) {\n        if (!res) {\n            return; //failed.\n        }\n         _this.form.doAction(\"submit\");\n    });\n\n}"
                     },
                     "*prop": "buttons[]",
                     "text": "Save",
index e72a40f..c95b443 100644 (file)
@@ -1125,6 +1125,8 @@ Pman.Dialog.CoreEmail = {
                     listeners : {
                         click : function (_self, e)
                         {
+                        _this.form.doAction("submit");
+                        return;
                             // do some checks?
                             _this.form.preValidate(function(res) {
                                 if (!res) {