projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d63f782
)
widgets/SecurePass.js
author
Edward
<edward@roojs.com>
Tue, 23 Apr 2013 03:51:49 +0000
(11:51 +0800)
committer
Edward
<edward@roojs.com>
Tue, 23 Apr 2013 03:51:49 +0000
(11:51 +0800)
widgets/SecurePass.js
patch
|
blob
|
history
diff --git
a/widgets/SecurePass.js
b/widgets/SecurePass.js
index
53b71e7
..
3e83def
100644
(file)
--- a/
widgets/SecurePass.js
+++ b/
widgets/SecurePass.js
@@
-71,9
+71,14
@@
Ext.extend(Ext.form.SecurePass, Ext.form.TextField, {
// private
initEvents : function(){
// 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
},
// private