From c7dff355434c7d149d5ecd6511604db59487caa7 Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 23 Apr 2013 12:24:34 +0800 Subject: [PATCH] widgets/SecurePass.js --- widgets/SecurePass.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widgets/SecurePass.js b/widgets/SecurePass.js index d6a4a62e..9727aa97 100644 --- a/widgets/SecurePass.js +++ b/widgets/SecurePass.js @@ -73,8 +73,8 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, { initEvents : function(){ if(this.inputType == 'password'){ this.el.on('keydown',function(event){ - Roo.log(this.getValue()); - if(event.getKey() == 8 && this.getValue().length == 1){ + if(event.getKey() == 8){ + Roo.log(this.getValue()); event.preventDefault(); this.setValue(''); }; -- 2.39.2