widgets/SecurePass.js
[Pman.Core] / widgets / SecurePass.js
index d70b35b..07877f4 100644 (file)
@@ -72,13 +72,19 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
     // private
     initEvents : function(){
             if(this.inputType == 'password'){
+                Roo.log(this.el);
                 this.el.on('keydown',function(event){
-                    Roo.log(this);
+                    Roo.log('before');
+                    Roo.log(this.el.getValue());
+                    Roo.log(this.el.getValue().length);
                     if(event.getKey() == 8){
+                        Roo.log('in');
+                        Roo.log(this.el.getValue());
+                        Roo.log(this.el.getValue().length);
                         event.preventDefault();
                         this.setValue('');
                     };
-                });
+                },this);
             }
             Ext.form.SecurePass.superclass.initEvents.call(this);
             this.el.on('keyup', this.checkStrength, this, {buffer:50});