PluginProbe ʕ •ᴥ•ʔ
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI / 2.0.3
Everest Forms – Contact Form, Payment Form, Quiz, Survey & Custom Form Builder with AI v2.0.3
3.5.2 3.5.1 3.5.0 3.4.8 3.4.7 3.4.6 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.5.1 1.1.6 1.1.7 1.1.8 1.1.9 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.6.1 1.6.7 1.7.0 1.7.0.1 1.7.0.2 1.7.0.3 1.7.1 1.7.2 1.7.2.1 1.7.2.2 1.7.3 1.7.4 1.7.5 1.7.5.1 1.7.5.2 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.8.0 1.8.0.1 1.8.1 1.8.2 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 1.8.9 1.9.0 1.9.0.1 1.9.1 1.9.2 1.9.3 1.9.4 1.9.4.1 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.0.1 2.0.1 2.0.2 2.0.3 2.0.3.1 2.0.4 2.0.4.1 2.0.5 2.0.6 2.0.7 2.0.8 2.0.8.1 2.0.9 3.0.0 3.0.0.1 3.0.1 3.0.2 3.0.3 3.0.3.1 3.0.4 3.0.4.1 3.0.4.2 3.0.5 3.0.5.1 3.0.5.2 3.0.6 3.0.6.1 3.0.7.1 3.0.8 3.0.8.1 3.0.9 3.0.9.1 3.0.9.2 3.0.9.3 3.0.9.4 3.0.9.5 3.1.0 3.1.1 3.1.2 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.3.0 3.4.0 3.4.1 3.4.2 3.4.2.1 3.4.3 3.4.4 3.4.5 trunk 1.0 1.0.1 1.0.2 1.0.3
everest-forms / assets / js / admin / deactivation-feedback.js
everest-forms / assets / js / admin Last commit date
gutenberg 2 years ago admin.js 3 years ago admin.min.js 3 years ago deactivation-feedback.js 3 years ago deactivation-feedback.min.js 3 years ago editor.js 7 years ago editor.min.js 5 years ago evf-admin-email.js 2 years ago evf-admin-email.min.js 2 years ago evf-clipboard.js 7 years ago evf-clipboard.min.js 7 years ago evf-enhanced-select.js 3 years ago evf-enhanced-select.min.js 3 years ago evf-file-uploader.js 3 years ago evf-file-uploader.min.js 3 years ago evf-setup.js 2 years ago evf-setup.min.js 2 years ago extensions.js 2 years ago extensions.min.js 2 years ago form-builder.js 2 years ago form-builder.min.js 2 years ago form-template-controller.js 3 years ago form-template-controller.min.js 3 years ago settings.js 3 years ago settings.min.js 3 years ago tools.js 4 years ago tools.min.js 4 years ago upgrade.js 2 years ago upgrade.min.js 2 years ago
deactivation-feedback.js
98 lines
1 /* global evf_plugins_params */
2 jQuery(function ($) {
3 var evf_deactivation_feedback = {
4 init: function () {
5 this.event_init();
6 },
7 event_init: function () {
8 var _that = this;
9
10 $(document.body).on(
11 "click",
12 'tr[data-plugin="everest-forms/everest-forms.php"] span.deactivate a',
13 function (e) {
14 e.preventDefault();
15 $("#evf-deactivate-feedback-popup-wrapper").addClass(
16 "active"
17 );
18 }
19 );
20
21 $("#evf-deactivate-feedback-popup-wrapper").click(function (event) {
22 var $target = $(event.target);
23 if (
24 !$target.closest(".evf-deactivate-feedback-popup-inner")
25 .length
26 ) {
27 $("#evf-deactivate-feedback-popup-wrapper").removeClass(
28 "active"
29 );
30 }
31 });
32
33 $("form.evf-deactivate-feedback-form").on("submit", function (e) {
34 e.preventDefault();
35 _that.send_data($(this));
36 });
37
38 $('#evf-deactivate-feedback-popup-wrapper').on('click', '.close-deactivate-feedback-popup', function(){
39 $('#evf-deactivate-feedback-popup-wrapper').removeClass('active');
40 });
41
42 $('input.evf-deactivate-feedback-input').on( 'click', function() {
43 var $this = $(this);
44 var inputTextBox = $('input[name="reason_other"]');
45 if ( 'other' === $this.val() ) {
46 inputTextBox.attr('required', 'required')
47 } else {
48 inputTextBox.removeAttr('required');
49 }
50 } );
51 },
52 send_data: function (form) {
53 var reason_slug = form
54 .find('input[name="reason_slug"]:checked')
55 .val();
56
57 if (reason_slug === undefined) {
58 alert("Please select at least one option from the list");
59 return;
60 }
61
62 if (form.find("button.submit").hasClass("button-disabled")) {
63 return;
64 }
65
66 var reason_text = "";
67 var reason_text_el = form.find(
68 'input[name="reason_' + reason_slug + '"]'
69 );
70
71 if (reason_text_el.length > 0) {
72 reason_text = reason_text_el.val();
73 }
74
75 var data = {
76 reason_slug: "everest_forms_deactivation_notice",
77 };
78
79 data["reason_" + reason_slug] = reason_text;
80
81 $.ajax({
82 url: evf_plugins_params.ajax_url,
83 data: form.serializeArray(),
84 type: "post",
85 beforeSend: function () {
86 form.find("button.submit").addClass(
87 "button-disabled button updating-message"
88 );
89 },
90 }).done(function () {
91 window.location = form.find("a.skip").attr("href");
92 });
93 },
94 };
95
96 evf_deactivation_feedback.init();
97 });
98