PluginProbe ʕ •ᴥ•ʔ
FraudLabs Pro for WooCommerce / 2.16.12
FraudLabs Pro for WooCommerce v2.16.12
2.24.2 2.24.1 2.24.0 trunk 2.10.0 2.10.1 2.10.10 2.10.11 2.10.12 2.10.13 2.10.14 2.10.2 2.10.3 2.10.4 2.10.5 2.10.6 2.10.7 2.10.8 2.10.9 2.11.0 2.11.1 2.11.10 2.11.11 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.11.9 2.12.0 2.12.1 2.12.2 2.12.3 2.12.4 2.12.5 2.12.6 2.13.0 2.13.1 2.13.10 2.13.2 2.13.3 2.13.4 2.13.5 2.13.6 2.13.7 2.13.8 2.13.9 2.14.0 2.14.1 2.14.10 2.14.11 2.14.2 2.14.3 2.14.4 2.14.5 2.14.6 2.14.7 2.14.8 2.14.9 2.15.0 2.16.0 2.16.1 2.16.10 2.16.11 2.16.12 2.16.13 2.16.14 2.16.15 2.16.16 2.16.17 2.16.18 2.16.19 2.16.2 2.16.3 2.16.4 2.16.5 2.16.6 2.16.7 2.16.8 2.16.9 2.17.0 2.17.1 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.7 2.17.8 2.18.0 2.18.1 2.18.2 2.18.3 2.18.4 2.18.5 2.19.0 2.19.1 2.19.2 2.19.3 2.20.0 2.20.1 2.20.2 2.20.3 2.21.0 2.21.1 2.22.0 2.22.1 2.22.10 2.22.11 2.22.12 2.22.13 2.22.14 2.22.15 2.22.2 2.22.3 2.22.4 2.22.5 2.22.6 2.22.7 2.22.8 2.22.9 2.23.0 2.23.1 2.23.2 2.23.3 2.23.4 2.23.5 2.23.6 2.23.7 2.8.17 2.9.0 2.9.1 2.9.2 2.9.3 2.9.4 2.9.5
fraudlabs-pro-for-woocommerce / assets / js / script.js
fraudlabs-pro-for-woocommerce / assets / js Last commit date
feedback.js 6 years ago script.js 4 years ago
script.js
76 lines
1 jQuery(document).ready(function($){
2 $('#button-purge').on('click', function(e) {
3 if (!confirm('WARNING: All data will be permanently deleted from the local storage (WordPress), and this action is not reversible. Are you sure you want to proceed with the deletion?')) {
4 e.preventDefault();
5 } else {
6 $('#form-purge').submit();
7 }
8 });
9
10 $('#validation_sequence').on('click', function() {
11 if ($('#validation_sequence').val() == 'after') {
12 $('#enable_wc_advanced_velocity').prop('disabled', true);
13 $('#fraud_message').prop('disabled', true);
14 } else {
15 $('#enable_wc_advanced_velocity').prop('disabled', false);
16 $('#fraud_message').prop('disabled', false);
17 }
18 });
19
20 $('#enable_wc_fraudlabspro_debug_log').on('click', function() {
21 if(!$('#enable_wc_fraudlabspro_debug_log').is(':checked')) {
22 $('#wc_fraudlabspro_debug_log_path').prop('disabled', true);
23 } else {
24 $('#wc_fraudlabspro_debug_log_path').prop('disabled', false);
25 }
26 });
27
28 $('.dismiss-button').on('click', function(e) {
29 $('#modal-step-1').css('display', 'none');
30 });
31
32 $('#setup_flp_key').on('input', function() {
33 $('#btn-to-step-2').prop('disabled', !($(this).val().length == 32));
34 });
35
36 $('#btn-to-step-2').on('click', function(e) {
37 e.preventDefault();
38
39 $('#modal-step-1').css('display', 'none');
40 $('#modal-step-2').css('display', 'block');
41
42 var $btn = $(this);
43
44 $('#fraudlabs_pro_key_validation_status').html('<span class="dashicons dashicons-update spin"></span> Validating API Key...');
45 $btn.prop('disabled', true);
46
47 $.post(ajaxurl, { action: 'fraudlabspro_woocommerce_validate_api_key', token: $('#setup_flp_key').val() }, function(response) {
48 if (response.indexOf("SUCCESS") == 0) {
49 $('#btn-to-step-3').prop('disabled', false);
50 $('#fraudlabs_pro_key_validation_status').html('<span class="dashicons dashicons-yes-alt" style="color:green;"></span> You are currently subscribed to a ' + response.substr(8) + ' Plan.</p></div>');
51 } else {
52 $('#btn-to-step-1').prop('disabled', false);
53 $('#fraudlabs_pro_key_validation_status').html('<span class="dashicons dashicons-warning" style="color:red;"></span> Invalid API Key. Please click on <strong>&laquo; Previous</strong> button to re-enter the API Key.');
54 }
55 })
56 .error(function() {
57 $('#fraudlabs_pro_key_validation_status').html('<span class="dashicons dashicons-warning" style="color:red;"></span> Validation skipped. Unable to validate the API Key.');
58 $('#btn-to-step-3').prop('disabled', false);
59 })
60 .always(function() {
61 });
62 });
63
64 $('#btn-to-step-1').on('click', function(e) {
65 e.preventDefault();
66
67 $('#modal-step-1').css('display', 'block');
68 $('#modal-step-2').css('display', 'none');
69 $('#btn-to-step-2').prop('disabled', false);
70 });
71
72 $('#btn-to-step-3').on('click', function() {
73 $('#modal-step-2').css('display', 'none');
74 $('#modal-step-3').css('display', 'block');
75 });
76 });