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

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

index 35d0886..4e3320f 100644 (file)
                 },
                 {
                     "listeners": {
-                        "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}"
+                        "click": "function (_self, e)\n{\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}"
                     },
                     "*prop": "buttons[]",
                     "text": "Save",
index c95b443..fd9c77a 100644 (file)
@@ -1125,8 +1125,7 @@ Pman.Dialog.CoreEmail = {
                     listeners : {
                         click : function (_self, e)
                         {
-                        _this.form.doAction("submit");
-                        return;
+                        
                             // do some checks?
                             _this.form.preValidate(function(res) {
                                 if (!res) {