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 +53 -30 2.0.2 → 4.0.3 View file →
@@ -1,38 +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
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 + }
21 33
22 -jQuery(function() {
23 - if ( ( jQuery( '#wppb_settings_email_confirmation' ).val() == 'yes' ) || ( jQuery( '#wppb_general_settings_hidden' ).val() == 'multisite' ) ){
24 - jQuery ( '#wppb-settings-activation-page' ).show();
25 - jQuery ( '.dynamic1' ).show();
26 -
27 - }else{
28 - jQuery ( '#wppb-settings-activation-page' ).hide();
29 - jQuery ( '.dynamic1' ).hide();
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 + });
42 +
43 +
44 + // Roles Editor
45 + if (jQuery( '#rolesEditorSelect' ).prop('checked')) {
46 + jQuery('.wppb-roles-editor-link').show();
30 47 }
31 -
32 -
33 - if ( jQuery( '#adminApprovalSelect' ).val() == 'yes' )
34 - jQuery ( '.dynamic2' ).show();
35 -
36 - else
37 - jQuery ( '.dynamic2' ).hide();
48 + else {
49 + jQuery ( '.wppb-roles-editor-link' ).hide();
50 + }
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 + });
60 +
38 61 });