From 869e2a27f4e5c56374fa89e4ed0357b95eb6e471 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 15 Feb 2018 12:07:18 +0800 Subject: [PATCH] Pman.Dialog.VerifyAccess.bjs Pman.Dialog.VerifyAccess.js --- Pman.Dialog.VerifyAccess.bjs | 2 +- Pman.Dialog.VerifyAccess.js | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Pman.Dialog.VerifyAccess.bjs b/Pman.Dialog.VerifyAccess.bjs index 89a78802..3d540fd8 100644 --- a/Pman.Dialog.VerifyAccess.bjs +++ b/Pman.Dialog.VerifyAccess.bjs @@ -171,7 +171,7 @@ }, { "listeners" : { - "click" : "function (_self, e)\n{\n if(!_this.form.isValid()){\n return;\n }\n \n var p1 = _this.form.findField('password').getValue();\n var p2 = _this.form.findField('password1').getValue();\n \n if (p1 != p2) {\n _this.form.findField('password1').markInvalid('Password do not match');\n return;\n }\n \n _this.dialog.el.mask('Sending...');\n _this.form.doAction('submit');\n \n}" + "click" : "function (_self, e)\n{\n if(!_this.form.isValid()){\n return;\n }\n \n _this.dialog.el.mask('Sending...');\n _this.form.doAction('submit');\n \n}" }, "String weight" : "primary", "xtype" : "Button", diff --git a/Pman.Dialog.VerifyAccess.js b/Pman.Dialog.VerifyAccess.js index 2b49e83d..1200e815 100644 --- a/Pman.Dialog.VerifyAccess.js +++ b/Pman.Dialog.VerifyAccess.js @@ -96,14 +96,6 @@ Roo.apply(Pman.Dialog.VerifyAccess.prototype, { return; } - var p1 = _this.form.findField('password').getValue(); - var p2 = _this.form.findField('password1').getValue(); - - if (p1 != p2) { - _this.form.findField('password1').markInvalid('Password do not match'); - return; - } - _this.dialog.el.mask('Sending...'); _this.form.doAction('submit'); -- 2.39.2