PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | assets/src/js/utils/show-password.js +16 -16 4.3.84.4.8 View file →
@@ -1,16 +1,16 @@
1 -const $ = jQuery;
2 -
3 -$( function() {
4 - $( '.form-field input[type="password"]' ).wrap( '<span class="lp-password-input"></span>' );
5 - $( '.lp-password-input' ).append( '<span class="lp-show-password-input"></span>' );
6 -
7 - $( '.lp-show-password-input' ).on( 'click', function() {
8 - $( this ).toggleClass( 'display-password' );
9 - if ( $( this ).hasClass( 'display-password' ) ) {
10 - $( this ).siblings( [ 'input[type="password"]' ] ).prop( 'type', 'text' );
11 - } else {
12 - $( this ).siblings( 'input[type="text"]' ).prop( 'type', 'password' );
13 - }
14 - } );
15 -} );
16 -
1 +const $ = jQuery;
2 +
3 +$( function() {
4 + $( '.form-field input[type="password"]' ).wrap( '<span class="lp-password-input"></span>' );
5 + $( '.lp-password-input' ).append( '<span class="lp-show-password-input"></span>' );
6 +
7 + $( '.lp-show-password-input' ).on( 'click', function() {
8 + $( this ).toggleClass( 'display-password' );
9 + if ( $( this ).hasClass( 'display-password' ) ) {
10 + $( this ).siblings( [ 'input[type="password"]' ] ).prop( 'type', 'text' );
11 + } else {
12 + $( this ).siblings( 'input[type="text"]' ).prop( 'type', 'password' );
13 + }
14 + } );
15 +} );
16 +