Roo/bootstrap/form/Password.js
authorleon <leon@roojs.com>
Wed, 10 May 2023 02:52:24 +0000 (10:52 +0800)
committerleon <leon@roojs.com>
Wed, 10 May 2023 02:52:24 +0000 (10:52 +0800)
roojs-bootstrap.js
roojs-bootstrap-debug.js

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

index 523c7da..28d7c3d 100644 (file)
@@ -24,7 +24,7 @@ Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
         this.after = {
             xns : Roo.bootstrap,
             xtype : 'Button',
-            text : 'ABC'
+            html : 'ABC'
         };
 
         return Roo.bootstrap.form.Password.superclass.getAutoCreate.call(this);
index 6393409..599f7e2 100644 (file)
@@ -26060,7 +26060,7 @@ Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
         this.after = {
             xns : Roo.bootstrap,
             xtype : 'Button',
-            text : 'ABC'
+            html : 'ABC'
         };
 
         return Roo.bootstrap.form.Password.superclass.getAutoCreate.call(this);
index 22f68eb..32a044e 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.bootstrap.form.Password.superclass.constructor.call(this,A);this.inputType='password';};Roo.extend(Roo.bootstrap.form.Password,Roo.bootstrap.form.Input,{getAutoCreate:function(){this.after={xns:Roo.bootstrap,xtype:'Button',text:'ABC'}
+Roo.bootstrap.form.Password=function(A){Roo.bootstrap.form.Password.superclass.constructor.call(this,A);this.inputType='password';};Roo.extend(Roo.bootstrap.form.Password,Roo.bootstrap.form.Input,{getAutoCreate:function(){this.after={xns:Roo.bootstrap,xtype:'Button',html:'ABC'}
 ;return Roo.bootstrap.form.Password.superclass.getAutoCreate.call(this);},initEvents:function(){Roo.bootstrap.form.Password.superclass.initEvents.call(this);this.el.addClass('form-password');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');}}});