more quote identeiifers fixessss
[Pman.Core] / widgets / SecurePass.js
index 0584e41..8190c7d 100644 (file)
@@ -77,7 +77,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     onRender: function (ct, position) {
         Ext.form.SecurePass.superclass.onRender.call(this, ct, position);
         this.wrap = this.el.wrap({cls: 'x-form-field-wrap'});
-        this.trigger = this.wrap.createChild({tag: 'div', cls: 'StrengthMeter ' + this.triggerClass});
+        this.trigger = this.wrap.createChild({tag: 'div', cls: 'roo-strength-meter ' + this.triggerClass});
 
         this.trigger.createChild({
             tag: 'div',
@@ -161,9 +161,7 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     },
     // private
     validateValue: function (value) {
-        if(this.insecure){
-            return true;
-        }
+        
         if (!Ext.form.TextField.superclass.validateValue.call(this, value)) {
             return false;
         }
@@ -176,7 +174,12 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
             this.markInvalid(this.errors.PwdEmpty);
             return false;
         }
-        if ('[\x21-\x7e]*'.match(value)) {
+        
+        if(this.insecure){
+            return true;
+        }
+        
+        if (value.match(/[\x21-\x7e]*/)) {
             this.markInvalid(this.errors.PwdBadChar);
             return false;
         }