Pman.Dialog.CoreCompanies.bjs
authoredward <edward@roojs.com>
Fri, 4 Nov 2016 05:45:42 +0000 (13:45 +0800)
committeredward <edward@roojs.com>
Fri, 4 Nov 2016 05:45:42 +0000 (13:45 +0800)
Pman.Dialog.CoreCompanies.js

Pman.Dialog.CoreCompanies.bjs
Pman.Dialog.CoreCompanies.js

index 158ba59..e83f7b3 100644 (file)
     },
     {
      "listeners" : {
-      "click" : "function (_self, e)\n{\n    // do some checks?\n    \n    \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
+      "click" : "function (_self, e)\n{\n    // do some checks?\n    \n    if(!_this.form.isValid()){\n    \n    }\n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
      },
      "text" : "Save",
      "xtype" : "Button",
index d2a2891..dc35be1 100644 (file)
@@ -102,7 +102,9 @@ Pman.Dialog.CoreCompanies = {
         {
             // do some checks?
             
+            if(!_this.form.isValid()){
             
+            }
             
             _this.dialog.el.mask("Saving");
             _this.form.doAction("submit");