| 1 |
|
| 2 |
jQuery(document).ready(function() { |
| 3 |
|
| 4 |
// Email Confirmation |
| 5 |
if (jQuery ('#wppb_settings_email_confirmation').prop('checked') ) { |
| 6 |
jQuery('#wppb-settings-activation-page').show(); |
| 7 |
jQuery('#unconfirmed-user-emails').show(); |
| 8 |
} |
| 9 |
else { |
| 10 |
jQuery ( '#wppb-settings-activation-page' ).hide(); |
| 11 |
jQuery ( '#unconfirmed-user-emails' ).hide(); |
| 12 |
} |
| 13 |
|
| 14 |
jQuery ('#wppb_settings_email_confirmation').on('change', function() { |
| 15 |
if (jQuery ('#wppb_settings_email_confirmation').prop('checked') ) { |
| 16 |
jQuery('#wppb-settings-activation-page').show(); |
| 17 |
jQuery('#unconfirmed-user-emails').show(); |
| 18 |
} |
| 19 |
else { |
| 20 |
jQuery ( '#wppb-settings-activation-page' ).hide(); |
| 21 |
jQuery ( '#unconfirmed-user-emails' ).hide(); |
| 22 |
} |
| 23 |
}); |
| 24 |
|
| 25 |
|
| 26 |
// Admin Approval |
| 27 |
if (jQuery( '#adminApprovalSelect' ).prop('checked')) |
| 28 |
jQuery ( '.wppb-aa-user-list' ).show(); |
| 29 |
else jQuery ( '.wppb-aa-user-list' ).hide(); |
| 30 |
|
| 31 |
jQuery ('#adminApprovalSelect').on('change', function() { |
| 32 |
if (jQuery( '#adminApprovalSelect' ).prop('checked')) |
| 33 |
jQuery ( '.wppb-aa-user-list' ).show(); |
| 34 |
else jQuery ( '.wppb-aa-user-list' ).hide(); |
| 35 |
}); |
| 36 |
|
| 37 |
|
| 38 |
// Roles Editor |
| 39 |
if (jQuery( '#rolesEditorSelect' ).prop('checked')) |
| 40 |
jQuery ( '.wppb-roles-editor-link' ).show(); |
| 41 |
else jQuery ( '.wppb-roles-editor-link' ).hide(); |
| 42 |
|
| 43 |
jQuery ('#rolesEditorSelect').on('change', function() { |
| 44 |
if (jQuery( '#rolesEditorSelect' ).prop('checked')) |
| 45 |
jQuery ( '.wppb-roles-editor-link' ).show(); |
| 46 |
else jQuery ( '.wppb-roles-editor-link' ).hide(); |
| 47 |
}); |
| 48 |
|
| 49 |
}); |