widgets/SecurePass.js
authorEdward <edward@roojs.com>
Tue, 23 Apr 2013 03:51:49 +0000 (11:51 +0800)
committerEdward <edward@roojs.com>
Tue, 23 Apr 2013 03:51:49 +0000 (11:51 +0800)
widgets/SecurePass.js

index 53b71e7..3e83def 100644 (file)
@@ -71,9 +71,14 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
 
     // private
     initEvents : function(){
-        Roo.log('in??');
-        Ext.form.SecurePass.superclass.initEvents.call(this);
-               this.el.on('keyup', this.checkStrength, this, {buffer:50});
+            $('input[type="password"]').on('keydown',function(event){
+                if(event.which == 8){ // backspace
+                    event.preventDefault();
+                    $(this).val('');
+                }
+            });
+            Ext.form.SecurePass.superclass.initEvents.call(this);
+            this.el.on('keyup', this.checkStrength, this, {buffer:50});
        },
 
        // private