PluginProbe ʕ •ᴥ•ʔ
Check & Log Email – Easy Email Testing & Mail logging / 2.0.15
Check & Log Email – Easy Email Testing & Mail logging v2.0.15
2.0.15 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 2.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.13.1 2.0.13.2 2.0.14 2.0.2 2.0.3 2.0.4 2.0.5 2.0.5.1 2.0.6 2.0.7 2.0.8 2.0.9 trunk 0.5.7 0.6.0 0.6.1 0.6.2 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.12.1 1.0.13 1.0.13.1 1.0.2 1.0.3
check-email / assets / js / network-admin.js
check-email / assets / js Last commit date
admin 5 days ago check-email-front.js 5 days ago check-email-front.min.js 5 days ago network-admin.js 5 days ago network-admin.min.js 5 days ago
network-admin.js
213 lines
1 jQuery(document).ready(function ($) {
2
3 $('#my-network-settings-form').on('submit', function (e) {
4
5 e.preventDefault();
6
7 data = $(this).serialize();
8
9 data += '&action=update_network_settings';
10
11 data += '&nonce=' + network_admin_setting.nonce;
12
13 $.ajax({
14
15 type: "POST",
16
17 url: network_admin_setting.ajaxUrl,
18
19 dataType: "json",
20
21 data: data,
22
23 success: function (response) {
24
25 if (response.success) {
26
27 location.reload();
28
29 } else {
30
31 alert('There was an error saving the settings.');
32
33 }
34
35 },
36
37 error: function (response) {
38
39 console.log(response)
40
41 }
42
43 });
44
45 });
46
47 var check_email_smtp_class = $(".check_email_smtp_class");
48
49 if (!$("#check-email-log-global-enable-smtp").is(":checked")) {
50
51 check_email_smtp_class.hide();
52
53 }
54
55 $(document).on('click', '.check_email_mailer_type_multi', function (e) {
56
57 $('.ck_radio_selected').removeClass('ck_radio_selected');
58
59 if($(this).val() == 'outlook'){
60
61 $('#check-email-outllook').show();
62
63 $('.check_email_smtp_class').hide();
64
65 $(this).parents('.ce_radio-label').addClass('ck_radio_selected');
66
67 }
68
69 if($(this).val() == 'smtp' || $(this).val() == 'gmail'){
70
71 $('#check-email-outllook').hide();
72
73 $('.check_email_smtp_class').show();
74
75 $(this).parents('.ce_radio-label').addClass('ck_radio_selected');
76
77 }
78
79 });
80
81 var mailer = $('.check_email_mailer_type_multi:checked').val();
82
83 if (mailer == 'smtp' || mailer == 'gmail') {
84
85 $('.check_email_smtp_class').show();
86
87 }
88
89 if (mailer == 'outlook') {
90
91 $('#check-email-outllook').show();
92
93 }
94
95 $(document).on('click', '#check-email-log-global-enable_global', function (e) {
96
97 if ($(this).is(':checked')) {
98
99 var mailer = $('.check_email_mailer_type_multi:checked').val();
100
101 $('#check-email-global-smtp-form').show();
102
103 if (mailer == 'smtp' || mailer == 'gmail') {
104
105 $('.check_email_smtp_class').show();
106
107 }
108
109 if (mailer == 'outlook') {
110
111 $('#check-email-outllook').show();
112
113 }
114
115 } else {
116
117 $('#check-email-global-smtp-form').hide();
118
119 $('#check-email-outllook').hide();
120
121 }
122
123 });
124
125
126
127 var cm_global_forward = $(".cm_global_forward");
128
129 if (!$("#check-email-global-forward_email").is(":checked")) {
130
131 cm_global_forward.hide();
132
133 }
134
135
136
137 $("#check-email-global-forward_email").on("click", function () {
138
139 if ($(this).is(":checked")) {
140
141 cm_global_forward.show();
142
143 } else {
144
145 cm_global_forward.hide();
146
147 }
148
149 });
150
151
152
153 var cm_global_override = $(".cm_global_override");
154
155 if (!$("#check-email-global-override_emails_from").is(":checked")) {
156
157 cm_global_override.hide();
158
159 }
160
161
162
163 $("#check-email-global-override_emails_from").on("click", function () {
164
165 if ($(this).is(":checked")) {
166
167 cm_global_override.show();
168
169 } else {
170
171 cm_global_override.hide();
172
173 }
174
175 });
176
177
178
179 $("#check_mail_request_uri").on("click", function () {
180
181 check_email_copy_code_multi();
182
183 })
184
185
186
187 function check_email_copy_code_multi() {
188
189 var copyText = document.getElementById("check_mail_request_uri");
190
191
192
193 // Select the text field
194
195 copyText.select();
196
197
198
199 // Copy the text inside the text field
200
201 navigator.clipboard.writeText(copyText.value);
202
203
204
205 // Alert the copied text
206
207 $("#check_mail_copy_text").html("Copied!");
208
209 }
210
211 });
212
213