Roo/form/Password.js
authorleon <leon@roojs.com>
Fri, 22 Dec 2023 04:06:01 +0000 (12:06 +0800)
committerleon <leon@roojs.com>
Fri, 22 Dec 2023 04:06:01 +0000 (12:06 +0800)
roojs-core.js
roojs-core-debug.js
roojs-ui.js
roojs-ui-debug.js
roojs-all.js
roojs-debug.js
roojs-bootstrap.js
roojs-bootstrap-debug.js

Roo/form/Password.js
roojs-all.js
roojs-debug.js
roojs-ui-debug.js
roojs-ui.js

index b73fae9..a561488 100644 (file)
@@ -28,7 +28,7 @@ Roo.extend(Roo.form.Password, Roo.form.TextField,  {
 
     initEvents : function()
     {
-        Roo.form.Password.superclass.initEvents.call();
+        Roo.form.Password.superclass.initEvents.call(this);
 
         this.el.on('paste', this.onPaste, this);
     },
index e07d1e9..3a906a7 100644 (file)
@@ -1684,7 +1684,7 @@ return false;}if(this.vtype){var vt=Roo.form.VTypes;if(!vt[this.vtype](A,this)){
 return;}if(B&&A.getCharCode()>31){A.preventDefault();var cc=String.fromCharCode(A.getCharCode());this.setValue(A.shiftKey?cc:cc.toLowerCase());}}});
 // Roo/form/Password.js
 Roo.form.Password=function(A){Roo.form.Password.superclass.constructor.call(this,A);this.inputType='password';};Roo.extend(Roo.form.Password,Roo.form.TextField,{onRender:function(ct,A){Roo.form.Password.superclass.onRender.call(this,ct,A);this.parentEl().addClass('form-password');
-this.wrap=this.el.wrap({cls:'password-wrap'});this.toggle=this.wrap.createChild({tag:'Button',cls:'password-toggle'});this.toggleEl().addClass('password-hidden');this.toggleEl().on('click',this.onToggleClick,this);;},initEvents:function(){Roo.form.Password.superclass.initEvents.call(this,ct,position);
+this.wrap=this.el.wrap({cls:'password-wrap'});this.toggle=this.wrap.createChild({tag:'Button',cls:'password-toggle'});this.toggleEl().addClass('password-hidden');this.toggleEl().on('click',this.onToggleClick,this);;},initEvents:function(){Roo.form.Password.superclass.initEvents.call(this);
 this.el.on('paste',this.onPaste,this);},onPaste:function(e){Roo.log('On Paste');Roo.log(e);},parentEl:function(){return this.el.findParent('.x-form-element',5,true);},toggleEl:function(){return this.parentEl().select('button.password-toggle',true).first();
 },onToggleClick:function(e){var A=this.el;var B=this.toggleEl();B.removeClass(['password-visible','password-hidden']);if(A.attr('type')=='password'){A.attr('type','text');B.addClass('password-visible');}else{A.attr('type','password');B.addClass('password-hidden');
 }}});
index be7ca0c..9e51964 100644 (file)
@@ -41478,7 +41478,7 @@ Roo.extend(Roo.form.Password, Roo.form.TextField,  {
 
     initEvents : function()
     {
-        Roo.form.Password.superclass.initEvents.call(this, ct, position);
+        Roo.form.Password.superclass.initEvents.call(this);
 
         this.el.on('paste', this.onPaste, this);
     },
index 88ecb30..179db0b 100644 (file)
@@ -16976,7 +16976,7 @@ Roo.extend(Roo.form.Password, Roo.form.TextField,  {
 
     initEvents : function()
     {
-        Roo.form.Password.superclass.initEvents.call(this, ct, position);
+        Roo.form.Password.superclass.initEvents.call(this);
 
         this.el.on('paste', this.onPaste, this);
     },
index e9ca4cc..44e1271 100644 (file)
@@ -737,7 +737,7 @@ return false;}if(this.vtype){var vt=Roo.form.VTypes;if(!vt[this.vtype](A,this)){
 return;}if(B&&A.getCharCode()>31){A.preventDefault();var cc=String.fromCharCode(A.getCharCode());this.setValue(A.shiftKey?cc:cc.toLowerCase());}}});
 // Roo/form/Password.js
 Roo.form.Password=function(A){Roo.form.Password.superclass.constructor.call(this,A);this.inputType='password';};Roo.extend(Roo.form.Password,Roo.form.TextField,{onRender:function(ct,A){Roo.form.Password.superclass.onRender.call(this,ct,A);this.parentEl().addClass('form-password');
-this.wrap=this.el.wrap({cls:'password-wrap'});this.toggle=this.wrap.createChild({tag:'Button',cls:'password-toggle'});this.toggleEl().addClass('password-hidden');this.toggleEl().on('click',this.onToggleClick,this);;},initEvents:function(){Roo.form.Password.superclass.initEvents.call(this,ct,position);
+this.wrap=this.el.wrap({cls:'password-wrap'});this.toggle=this.wrap.createChild({tag:'Button',cls:'password-toggle'});this.toggleEl().addClass('password-hidden');this.toggleEl().on('click',this.onToggleClick,this);;},initEvents:function(){Roo.form.Password.superclass.initEvents.call(this);
 this.el.on('paste',this.onPaste,this);},onPaste:function(e){Roo.log('On Paste');Roo.log(e);},parentEl:function(){return this.el.findParent('.x-form-element',5,true);},toggleEl:function(){return this.parentEl().select('button.password-toggle',true).first();
 },onToggleClick:function(e){var A=this.el;var B=this.toggleEl();B.removeClass(['password-visible','password-hidden']);if(A.attr('type')=='password'){A.attr('type','text');B.addClass('password-visible');}else{A.attr('type','password');B.addClass('password-hidden');
 }}});