Changeset 60306
- Timestamp:
- 06/13/2025 10:35:04 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/user-profile.js
r60268 r60306 102 102 } 103 103 $toggleButton = $pass1Row.find('.wp-hide-pw'); 104 105 // Toggle between showing and hiding the password. 104 106 $toggleButton.show().on( 'click', function () { 105 107 if ( 'password' === $pass1.attr( 'type' ) ) { … … 111 113 } 112 114 }); 115 116 // Ensure the password input type is set to password when the form is submitted. 117 $pass1Row.closest( 'form' ).on( 'submit', function() { 118 if ( $pass1.attr( 'type' ) === 'text' ) { 119 $pass1.attr( 'type', 'password' ); 120 resetToggle( true ); 121 } 122 } ); 113 123 } 114 124
Note: See TracChangeset
for help on using the changeset viewer.