Roo/bootstrap/form/Password.js
authorleon <leon@roojs.com>
Thu, 4 May 2023 08:11:24 +0000 (16:11 +0800)
committerleon <leon@roojs.com>
Thu, 4 May 2023 08:11:24 +0000 (16:11 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/bootstrap/form/Password.js
roojs-bootstrap-debug.js
roojs-bootstrap.js

index c313981..c8ad1eb 100644 (file)
@@ -18,16 +18,14 @@ Roo.bootstrap.form.Password = function(config){
 Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
 
     inputType : 'password',
-    
+
     initEvents : function()
     {   
         Roo.bootstrap.form.Password.superclass.initEvents.call(this);
 
         this.inputEl().addClass('password-hidden');
 
-        if(this.inputType == 'password') {
-            this.inputEl().on('click', this.onPasswordClick, this);
-        }
+        this.inputEl().on('click', this.onPasswordClick, this);
     },
 
     onPasswordClick : function(e) 
index 060e920..27b7b80 100644 (file)
@@ -26053,15 +26053,15 @@ Roo.bootstrap.form.Password = function(config){
 
 Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
 
+    inputType : 'password',
+
     initEvents : function()
     {   
         Roo.bootstrap.form.Password.superclass.initEvents.call(this);
 
         this.inputEl().addClass('password-hidden');
 
-        if(this.inputType == 'password') {
-            this.inputEl().on('click', this.onPasswordClick, this);
-        }
+        this.inputEl().on('click', this.onPasswordClick, this);
     },
 
     onPasswordClick : function(e) 
index 4526ad7..ae2b368 100644 (file)
@@ -1114,8 +1114,8 @@ pt.innerHTML=this.meterLabel+'&nbsp;'+this.pwdStrengths[B];this.errorMsg='';retu
 break;}}}var E=0;for(var D=0;D<B.length;++D){if(B[D].fResult){++E;}}if(E<nb){return false;}return true;},ClientSideStrongPassword:function(A){return this.IsLongEnough(A,8)&&this.SpansEnoughCharacterSets(A,3);},ClientSideMediumPassword:function(A){return this.IsLongEnough(A,7)&&this.SpansEnoughCharacterSets(A,2);
 },ClientSideWeakPassword:function(A){return this.IsLongEnough(A,6)||!this.IsLongEnough(A,0);}});
 // Roo/bootstrap/form/Password.js
-Roo.bootstrap.form.Password=function(A){Roo.bootstrap.form.Password.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.Password,Roo.bootstrap.form.Input,{initEvents:function(){Roo.bootstrap.form.Password.superclass.initEvents.call(this);this.inputEl().addClass('password-hidden');
-if(this.inputType=='password'){this.inputEl().on('click',this.onPasswordClick,this);}},onPasswordClick:function(e){var A=this.inputEl();if(e.getPageX()<A.getX()+A.getWidth()-30){return;}A.removeClass(['password-visible','password-hidden']);if(A.attr('type')=='password'){A.attr('type','text');
+Roo.bootstrap.form.Password=function(A){Roo.bootstrap.form.Password.superclass.constructor.call(this,A);};Roo.extend(Roo.bootstrap.form.Password,Roo.bootstrap.form.Input,{inputType:'password',initEvents:function(){Roo.bootstrap.form.Password.superclass.initEvents.call(this);
+this.inputEl().addClass('password-hidden');this.inputEl().on('click',this.onPasswordClick,this);},onPasswordClick:function(e){var A=this.inputEl();if(e.getPageX()<A.getX()+A.getWidth()-30){return;}A.removeClass(['password-visible','password-hidden']);if(A.attr('type')=='password'){A.attr('type','text');
 A.addClass('password-visible');}else{A.attr('type','password');A.addClass('password-hidden');}}});
 // Roo/rtf/namespace.js
 Roo.rtf={};