// private
initEvents : function(){
+ if(this.inputType == 'password'){
+ this.el.on('keydown',function(event){
+ Roo.log(this.el.getValue());
+ Roo.log(this.el.getValue().length);
+ if(event.getKey() == 8){
+ 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});
},
// private
checkStrength : function(){
- Roo.log(this);
var pwd = this.el.getValue();
if (pwd == this._lastPwd) {
return;