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

index da44c59..daba6e0 100644 (file)
@@ -27,4 +27,28 @@ Roo.extend(Roo.bootstrap.form.Password, Roo.bootstrap.form.Input, {
     {   
         Roo.bootstrap.form.Password.superclass.initEvents.call(this);
     }
-});
\ No newline at end of file
+});
+
+        // 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');
+    //     }
+    // },
\ No newline at end of file