Roo/form/Password.js
authorleon <leon@roojs.com>
Fri, 22 Dec 2023 04:12:12 +0000 (12:12 +0800)
committerleon <leon@roojs.com>
Fri, 22 Dec 2023 04:12:12 +0000 (12:12 +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 3f1150e..b304a99 100644 (file)
@@ -29,12 +29,6 @@ Roo.extend(Roo.form.Password, Roo.form.TextField,  {
     initEvents : function()
     {
         Roo.form.Password.superclass.initEvents.call(this);
-
-        // this.el.on('paste', this.onPaste, this);
-    },
-
-    onPaste : function(e)
-    {
     },
     
     parentEl : function()
index fcc7b0b..0ff499e 100644 (file)
@@ -1685,7 +1685,7 @@ return;}if(B&&A.getCharCode()>31){A.preventDefault();var cc=String.fromCharCode(
 // 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);
-},onPaste:function(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']);
+},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');Roo.log(A);}else{A.attr('type','password');B.addClass('password-hidden');}}});
 // Roo/form/Hidden.js
 Roo.form.Hidden=function(A){Roo.form.Hidden.superclass.constructor.call(this,A);};Roo.extend(Roo.form.Hidden,Roo.form.TextField,{fieldLabel:'',inputType:'hidden',width:50,allowBlank:true,labelSeparator:'',hidden:true,itemCls:'x-form-item-display-none'});
index 934670e..a96e1b8 100644 (file)
@@ -41479,12 +41479,6 @@ Roo.extend(Roo.form.Password, Roo.form.TextField,  {
     initEvents : function()
     {
         Roo.form.Password.superclass.initEvents.call(this);
-
-        // this.el.on('paste', this.onPaste, this);
-    },
-
-    onPaste : function(e)
-    {
     },
     
     parentEl : function()
index 7cff1fa..dbacc5b 100644 (file)
@@ -16977,12 +16977,6 @@ Roo.extend(Roo.form.Password, Roo.form.TextField,  {
     initEvents : function()
     {
         Roo.form.Password.superclass.initEvents.call(this);
-
-        // this.el.on('paste', this.onPaste, this);
-    },
-
-    onPaste : function(e)
-    {
     },
     
     parentEl : function()
index 927a578..d686eee 100644 (file)
@@ -738,7 +738,7 @@ return;}if(B&&A.getCharCode()>31){A.preventDefault();var cc=String.fromCharCode(
 // 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);
-},onPaste:function(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']);
+},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');Roo.log(A);}else{A.attr('type','password');B.addClass('password-hidden');}}});
 // Roo/form/Hidden.js
 Roo.form.Hidden=function(A){Roo.form.Hidden.superclass.constructor.call(this,A);};Roo.extend(Roo.form.Hidden,Roo.form.TextField,{fieldLabel:'',inputType:'hidden',width:50,allowBlank:true,labelSeparator:'',hidden:true,itemCls:'x-form-item-display-none'});