Pman.Dialog.VerifyAccess.bjs
authoredward <edward@roojs.com>
Thu, 15 Feb 2018 04:07:18 +0000 (12:07 +0800)
committeredward <edward@roojs.com>
Thu, 15 Feb 2018 04:07:18 +0000 (12:07 +0800)
Pman.Dialog.VerifyAccess.js

Pman.Dialog.VerifyAccess.bjs
Pman.Dialog.VerifyAccess.js

index 89a7880..3d540fd 100644 (file)
     },
     {
      "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",
index 2b49e83..1200e81 100644 (file)
@@ -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');