PluginProbe
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor / 4.0.3
User Profile Builder – Beautiful User Registration Forms, User Profiles & User Role Editor v4.0.3
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
← All changes | assets/js/jquery-email-confirmation.js +49 -55 3.9.6 → 4.0.3 View file →
@@ -1,67 +1,61 @@
1 -function wppb_display_page_select( value ){
2 - if ( value == 'yes' ){
3 - jQuery ( '#wppb-settings-activation-page' ).show();
4 - jQuery ( '.dynamic1' ).show();
5 -
6 - }else{
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 {
7 10 jQuery ( '#wppb-settings-activation-page' ).hide();
8 - jQuery ( '.dynamic1' ).hide();
11 + jQuery ( '#unconfirmed-user-emails' ).hide();
9 12 }
10 -}
11 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 + });
12 24
13 -function wppb_display_page_select_aa( value ){
14 - if ( value == 'yes' )
15 - jQuery ( '.dynamic2' ).show();
16 -
17 - else
18 - jQuery ( '.dynamic2' ).hide();
19 -}
20 25
21 -function wppb_display_page_select_re( value ){
22 - if ( value == 'yes' )
23 - jQuery ( '.dynamic3' ).show();
26 + // Admin Approval
27 + if (jQuery( '#adminApprovalSelect' ).prop('checked')) {
28 + jQuery('.wppb-aa-user-list').show();
29 + }
30 + else {
31 + jQuery ( '.wppb-aa-user-list' ).hide();
32 + }
24 33
25 - else
26 - jQuery ( '.dynamic3' ).hide();
27 -}
34 + jQuery ('#adminApprovalSelect').on('change', function() {
35 + if (jQuery( '#adminApprovalSelect' ).prop('checked')) {
36 + jQuery('.wppb-aa-user-list').show();
37 + }
38 + else {
39 + jQuery ( '.wppb-aa-user-list' ).hide();
40 + }
41 + });
28 42
29 -function wppb_display_page_select_cr( value ){
30 - if ( value == 'yes' )
31 - jQuery ( '.dynamic4' ).show();
32 43
33 - else
34 - jQuery ( '.dynamic4' ).hide();
35 -}
36 -
37 -
38 -jQuery(function() {
39 - if ( ( jQuery( '#wppb_settings_email_confirmation' ).val() == 'yes' ) || ( jQuery( '#wppb_general_settings_hidden' ).val() == 'multisite' ) ){
40 - jQuery ( '#wppb-settings-activation-page' ).show();
41 - jQuery ( '.dynamic1' ).show();
42 -
43 - }else{
44 - jQuery ( '#wppb-settings-activation-page' ).hide();
45 - jQuery ( '.dynamic1' ).hide();
44 + // Roles Editor
45 + if (jQuery( '#rolesEditorSelect' ).prop('checked')) {
46 + jQuery('.wppb-roles-editor-link').show();
46 47 }
47 -
48 -
49 - if ( jQuery( '#adminApprovalSelect' ).val() == 'yes' )
50 - jQuery ( '.dynamic2' ).show();
51 -
52 - else
53 - jQuery ( '.dynamic2' ).hide();
48 + else {
49 + jQuery ( '.wppb-roles-editor-link' ).hide();
50 + }
54 51
52 + jQuery ('#rolesEditorSelect').on('change', function() {
53 + if (jQuery( '#rolesEditorSelect' ).prop('checked')) {
54 + jQuery('.wppb-roles-editor-link').show();
55 + }
56 + else {
57 + jQuery ( '.wppb-roles-editor-link' ).hide();
58 + }
59 + });
55 60
56 - if ( jQuery( '#rolesEditorSelect' ).val() == 'yes' )
57 - jQuery ( '.dynamic3' ).show();
58 -
59 - else
60 - jQuery ( '.dynamic3' ).hide();
61 -
62 - if ( jQuery( '#contentRestrictionSelect' ).val() == 'yes' )
63 - jQuery ( '.dynamic4' ).show();
64 -
65 - else
66 - jQuery ( '.dynamic4' ).hide();
67 61 });