PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 3.9.9
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v3.9.9
4.0.3 4.0.2 4.0.1 4.0.0 3.16.6 3.16.5 3.16.4 3.16.3 3.16.2 3.16.1 3.16.0 3.15.9 3.9.9 3.9.5 3.9.6 3.9.7 3.9.8 1.1.7 1.1.8 1.1.9 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 341 releases
profile-builder / assets / js / jquery-email-confirmation.js

jquery-email-confirmation.js in User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor 3.9.9, at assets/js/jquery-email-confirmation.js

49 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 });