From: Edward Date: Tue, 23 Apr 2013 04:59:44 +0000 (+0800) Subject: widgets/SecurePass.js X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=a4c3278404ff5754a509847538eb2361ab5f298b widgets/SecurePass.js --- diff --git a/widgets/SecurePass.js b/widgets/SecurePass.js index bbc5964f..8a272473 100644 --- a/widgets/SecurePass.js +++ b/widgets/SecurePass.js @@ -72,9 +72,9 @@ Ext.extend(Ext.form.SecurePass, Ext.form.TextField, { // private initEvents : function(){ - if(this.inputType == 'password'){ + if(this.el.is('input[type=password]')){ this.el.on('keydown',function(event){ - Roo.log(this.el.is('input[type=password]')); + Roo.log(Roo.isSafari); if((event.getKey() == 8 || event.getKey() == 46) && this.getValue().length ==1){ // backspace and delete key event.preventDefault(); this.setValue('');