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

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

index 99f7a76..bf986b4 100644 (file)
@@ -26056,6 +26056,8 @@ Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
     {
         var cfg = Roo.bootstrap.form.Password.superclass.getAutoCreate.call(this);
         
+        Roo.log('GET AUTO CREATE');
+        Roo.log(cfg);
         return cfg;
     },
 
@@ -26063,7 +26065,31 @@ Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
     {   
         Roo.bootstrap.form.Password.superclass.initEvents.call(this);
     }
-});Roo.rtf = {}; // namespace
+});
+
+        // if(this.inputType == 'password') {
+        //     this.inputEl().on('click', this.onPasswordClick, this);
+        // }
+
+            // onPasswordClick : function(e) 
+    // {
+    //     var input = this.inputEl();
+
+    //     if(e.getPageX() < input.getX() + input.getWidth() - 30) {
+    //         return;
+    //     }
+
+    //     input.removeClass(['password-visible', 'password-hidden']);
+
+    //     if(input.attr('type') == 'password') {
+    //         input.attr('type', 'text');
+    //         input.addClass('password-visible');
+    //     }
+    //     else {
+    //         input.attr('type', 'password');
+    //         input.addClass('password-hidden');
+    //     }
+    // },Roo.rtf = {}; // namespace
 Roo.rtf.Hex = function(hex)
 {
     this.hexstr = hex;
index 93c8de0..f7849eb 100644 (file)
@@ -1115,7 +1115,7 @@ break;}}}var E=0;for(var D=0;D<B.length;++D){if(B[D].fResult){++E;}}if(E<nb){ret
 },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,{getAutoCreate:function(){var A=Roo.bootstrap.form.Password.superclass.getAutoCreate.call(this);
-return A;},initEvents:function(){Roo.bootstrap.form.Password.superclass.initEvents.call(this);}});
+Roo.log('GET AUTO CREATE');Roo.log(A);return A;},initEvents:function(){Roo.bootstrap.form.Password.superclass.initEvents.call(this);}});
 // Roo/rtf/namespace.js
 Roo.rtf={};
 // Roo/rtf/Hex.js