From fe9899f276171dc9ef9bc4c1224be97e8ab104da Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 23 Apr 2013 13:18:01 +0800 Subject: [PATCH] widgets/SecurePass.js --- widgets/SecurePass.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/SecurePass.js b/widgets/SecurePass.js index e6a08bc7..c4badf5c 100644 --- a/widgets/SecurePass.js +++ b/widgets/SecurePass.js @@ -71,13 +71,15 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, { // private initEvents : function(){ + Ext.form.SecurePass.superclass.initEvents.call(this); + if(this.el.is('input[type=password]') && Roo.isSafari){ this.el.on('keydown', this.SafariOnKeyDown, this); this.el.on("focus", function(){ this.setValue(''); }, this); } - Ext.form.SecurePass.superclass.initEvents.call(this); + this.el.on('keyup', this.checkStrength, this, {buffer:50}); }, -- 2.39.2