X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Pman.Dialog.CoreCompanies.bjs;h=309ed936219bdef1024f93f3136921031256a2d3;hb=e39e545f0a1e08a92582cc0349604e26ecc500b9;hp=4e6da4039c37c764c7a1350e5d0ce38f5e20670a;hpb=f7dbcc8d04f8d12c71a624808f45fc6582d01c44;p=Pman.Core diff --git a/Pman.Dialog.CoreCompanies.bjs b/Pman.Dialog.CoreCompanies.bjs index 4e6da403..309ed936 100644 --- a/Pman.Dialog.CoreCompanies.bjs +++ b/Pman.Dialog.CoreCompanies.bjs @@ -265,7 +265,7 @@ }, { "listeners" : { - "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}" + "click" : "function (_self, e)\n{\n // do some checks?\n \n if(!_this.form.isValid()){\n Roo.MessageBox.alert('Error', 'Please Correct all the errors in red');\n return;\n }\n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}" }, "text" : "Save", "xtype" : "Button",