PluginProbe
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services / 8.8.1
WPBot – AI ChatBot for Live Support, Lead Generation, WordPress Automation, AI Services v8.8.1
8.8.1 8.8.0 8.7.9 8.7.8 8.7.7 8.7.6 8.7.5 8.7.4 8.7.3 8.7.2 8.7.1 8.7.0 8.6.9 8.6.8 8.6.7 8.6.6 8.6.5 8.6.4 8.6.2 8.6.1 8.6.0 8.5.9 8.5.8 8.5.7 8.5.6 All 537 releases
← All changes | js/email_subscription.js +22 -22 8.7.3 → 8.8.1 View file →
@@ -1,22 +1,22 @@
1 -jQuery(document).ready(function($) {
2 - // Check/uncheck all checkboxes
3 - $('#wpbot_checked_all').on('change', function() {
4 - $('.wpbot_email_checkbox').prop('checked', $(this).prop('checked'));
5 - });
6 -
7 - // Delete confirmation and form submission
8 - $('#wpbot_submit_email_form').on('click', function(e) {
9 - e.preventDefault();
10 -
11 - var checkedLength = $('.wpbot_email_checkbox:checked').length;
12 - if (checkedLength === 0) {
13 - alert('Please select at least one record to delete.');
14 - return false;
15 - }
16 -
17 - if (confirm('Are you sure you want to delete the selected ' + checkedLength + ' record(s)?')) {
18 - $('input[name="wpbot_email_subscription_remove"]').val('1');
19 - $('#wpcs_form_sessions').submit();
20 - }
21 - });
22 -});
1 +jQuery(document).ready(function($) {
2 + // Check/uncheck all checkboxes
3 + $('#wpbot_checked_all').on('change', function() {
4 + $('.wpbot_email_checkbox').prop('checked', $(this).prop('checked'));
5 + });
6 +
7 + // Delete confirmation and form submission
8 + $('#wpbot_submit_email_form').on('click', function(e) {
9 + e.preventDefault();
10 +
11 + var checkedLength = $('.wpbot_email_checkbox:checked').length;
12 + if (checkedLength === 0) {
13 + alert('Please select at least one record to delete.');
14 + return false;
15 + }
16 +
17 + if (confirm('Are you sure you want to delete the selected ' + checkedLength + ' record(s)?')) {
18 + $('input[name="wpbot_email_subscription_remove"]').val('1');
19 + $('#wpcs_form_sessions').submit();
20 + }
21 + });
22 +});