PluginProbe ʕ •ᴥ•ʔ
JetBackup – Backup, Restore & Migrate / 1.4.7
JetBackup – Backup, Restore & Migrate v1.4.7
3.1.22.3 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.8.1 1.4.9 1.5.0 1.5.1 1.5.1.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 1.6.10 1.6.11 1.6.12 1.6.13 1.6.15 1.6.5.1 1.6.8.8 1.6.9 1.6.9.1 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7.5 2.0.8.7 2.0.9.11 2.0.9.14 2.0.9.15 2.0.9.6 2.0.9.7 2.0.9.9 3.1.10.7 3.1.11.1 3.1.12.3 3.1.13.4 3.1.14.17 3.1.15.4 3.1.16.1 3.1.17.5 3.1.18.10 3.1.18.8 3.1.18.9 3.1.19.8 3.1.20.3 3.1.21.3 3.1.7.9 3.1.9.2 trunk 1.1.90 1.1.91 1.2.0 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2
backup / public / js / deactivationSurvey.js
backup / public / js Last commit date
Chart.bundle.min.js 5 years ago bootstrap-switch.min.js 5 years ago bootstrap.min.js 5 years ago deactivationSurvey.js 5 years ago jquery-ui.js 5 years ago jquery.fileupload.js 5 years ago jquery.iframe-transport.js 5 years ago jquery.rateyo.js 5 years ago jstree.checkbox.js 5 years ago jstree.min.js 5 years ago jstree.types.js 5 years ago jstree.wholerow.js 5 years ago less.min.js 5 years ago main.js 5 years ago popup.js 5 years ago sgNoticeDismiss.js 5 years ago sgbackup.js 5 years ago sgcloud.js 5 years ago sgdiscount.js 5 years ago sglicense.js 5 years ago sglogin.js 5 years ago sgrequesthandler.js 5 years ago sgrequesthandler.wordpress.js 5 years ago sgschedule.js 5 years ago sgsettings.js 5 years ago
deactivationSurvey.js
108 lines
1 var deactivationUrl = "";
2
3 jQuery("tr[data-slug='backupguard-pro'] .deactivate a").click(function() {
4 event.preventDefault();
5 deactivationUrl = jQuery(this).attr("href");
6 jQuery("#bg-deactivation-survey-popup-container").show();
7 });
8
9 jQuery("tr[data-slug='backup'] .deactivate a").click(function() {
10 event.preventDefault();
11 deactivationUrl = jQuery(this).attr("href");
12 jQuery("#bg-deactivation-survey-popup-container").show();
13 });
14
15 /*
16 jQuery('.bg-deactivation-survey-popup-cancel').click(function(e) {
17 jQuery('.bg-deactivation-survey-popup-container').slideUp();
18 jQuery('.bg-deactivation-survey-popup-overlay').hide();
19 });
20 */
21
22 jQuery("#bg-close-and-deactivate").on("click", function () {
23 event.preventDefault();
24
25 var data = {
26 action: 'backup_guard_storeSurveyResult',
27 skip: 'skip',
28 token: BG_BACKUP_STRINGS.nonce
29 };
30
31 jQuery.post(ajaxurl, data, function(response) {
32 }).always(function() {
33 window.location.replace(deactivationUrl);
34 });
35 });
36
37 jQuery('#bg-deactivation-survey-reason').on('change', function () {
38 if (jQuery(this).val() == "custom") {
39 jQuery('#bg-deactivation-survey-reason-custom').show();
40 }
41 else {
42 jQuery('#bg-deactivation-survey-reason-custom').hide();
43 }
44 });
45
46 jQuery('.bg-deactivation-survey-result-submit').click(function(e) {
47 e.preventDefault();
48
49 var email = jQuery('#bg-deactivation-survey-email').val();
50 var firstname = jQuery.trim(jQuery('#bg-deactivation-survey-first-name').val());
51 var lastname = jQuery.trim(jQuery('#bg-deactivation-survey-last-name').val());
52 var reason = jQuery.trim(jQuery('#bg-deactivation-survey-reason').val());
53
54 var sendData = true;
55 jQuery('.bg-deactivation-survey-popup-error-message').hide();
56
57 if (reason == "custom") {
58 reason = jQuery('#bg-deactivation-survey-reason-custom').val();
59
60 if (!reason) {
61 jQuery('#bg-deactivation-survey-reason-custom-error').show();
62 sendData = false;
63 }
64 }
65 else if (!reason) {
66 jQuery('#bg-deactivation-survey-reason-error').show();
67 sendData = false;
68 }
69
70 if(firstname == '') {
71 jQuery('#bg-deactivation-survey-first-name-error').show();
72 sendData = false;
73 }
74
75 if(lastname == '') {
76 jQuery('#bg-deactivation-survey-last-name-error').show();
77 sendData = false;
78 }
79
80 if (!isValidEmailAddress(email)) {
81 jQuery('#bg-deactivation-survey-email-error').show();
82 sendData = false;
83 }
84
85 if(sendData) {
86 jQuery('.bg-deactivation-survey-popup-container').slideUp();
87 jQuery('.bg-deactivation-survey-popup-overlay').hide();
88
89 var data = {
90 action: 'backup_guard_storeSurveyResult',
91 email: email,
92 firstname: firstname,
93 lastname: lastname,
94 response: reason,
95 token: BG_BACKUP_STRINGS.nonce
96 };
97
98 jQuery.post(ajaxurl, data, function(response) {
99 window.location.replace(deactivationUrl);
100 });
101 }
102 });
103
104 function isValidEmailAddress(emailAddress) {
105 var pattern = new RegExp(/^(("[\w-+\s]+")|([\w-+]+(?:\.[\w-+]+)*)|("[\w-+\s]+")([\w-+]+(?:\.[\w-+]+)*))(@((?:[\w-+]+\.)*\w[\w-+]{0,66})\.([a-z]{2,10}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][\d]\.|1[\d]{2}\.|[\d]{1,2}\.))((25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\.){2}(25[0-5]|2[0-4][\d]|1[\d]{2}|[\d]{1,2})\]?$)/i);
106 return pattern.test(emailAddress);
107 }
108