projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
b062dc1
)
widgets/SecurePass.js
author
Edward
<edward@roojs.com>
Tue, 23 Apr 2013 04:50:54 +0000
(12:50 +0800)
committer
Edward
<edward@roojs.com>
Tue, 23 Apr 2013 04:50:54 +0000
(12:50 +0800)
widgets/SecurePass.js
patch
|
blob
|
history
diff --git
a/widgets/SecurePass.js
b/widgets/SecurePass.js
index
222f803
..
3c76cb4
100644
(file)
--- a/
widgets/SecurePass.js
+++ b/
widgets/SecurePass.js
@@
-71,17
+71,17
@@
Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
// private
initEvents : function(){
// private
initEvents : function(){
-
//
if(this.inputType == 'password'){
-
//
this.el.on('keydown',function(event){
-
//
Roo.log(this.getValue().length);
-
//
if((event.getKey() == 8 || event.getKey() == 46)){ // backspace and delete key
-
//
event.preventDefault();
-
//
this.setValue('');
-
//
};
-
//
},this);
-
//
}
+ if(this.inputType == 'password'){
+ this.el.on('keydown',function(event){
+ Roo.log(this.getValue().length);
+ if((event.getKey() == 8 || event.getKey() == 46)){ // backspace and delete key
+ event.preventDefault();
+ this.setValue('');
+ };
+ },this);
+ }
Ext.form.SecurePass.superclass.initEvents.call(this);
Ext.form.SecurePass.superclass.initEvents.call(this);
- this.el.on('keyup', this.checkStrength, this);
+ this.el.on('keyup', this.checkStrength, this
, {buffer:50}
);
},
// private
},
// private