roojs-bootstrap.js
authorleon <leon@roojs.com>
Thu, 4 May 2023 08:21:41 +0000 (16:21 +0800)
committerleon <leon@roojs.com>
Thu, 4 May 2023 08:21:41 +0000 (16:21 +0800)
roojs-bootstrap-debug.js

roojs-bootstrap-debug.js
roojs-bootstrap.js

index 830f84a..04b3307 100644 (file)
@@ -26048,8 +26048,7 @@ Roo.extend(Roo.bootstrap.form.SecurePass, Roo.bootstrap.form.Input, {
  */
 
 Roo.bootstrap.form.Password = function(config){
-    Roo.log('CONFIG');
-    Roo.log(config);
+    config.inputType = 'password'; // only accept 'password' as input type
     Roo.bootstrap.form.Password.superclass.constructor.call(this, config);
 };
 
index 65a6d5d..e5bb2c8 100644 (file)
@@ -1114,7 +1114,7 @@ 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.log('CONFIG');Roo.log(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);
+Roo.bootstrap.form.Password=function(A){A.inputType='password';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