PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 1.0.8
MxChat – AI Chatbot & Content Generation for WordPress v1.0.8
3.2.21 3.2.20 3.2.19 3.2.18 3.2.17 3.2.16 3.2.15 3.2.14 3.2.12 3.2.13 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 3.2.6 3.2.5 3.2.4 3.2.3 3.2.2 3.2.1 2.0.3 2.0.4 2.0.5 2.0.6 All 152 releases
← All changes | js/embedding-check.js +3 -23 3.2.71.0.8 View file →
@@ -3,11 +3,11 @@
3 3 if (urlParams.has('embedding_failed')) {
4 4 alert('Failed to generate embedding for the content. Please try submitting again.');
5 5 }
6 6
7 - // Sitemap Form Loader
8 7 var sitemapForm = document.getElementById('mxchat-sitemap-form');
9 8
9 + // Only proceed if the sitemapForm element exists
10 10 if (sitemapForm) {
11 11 var loadingSpinner = document.getElementById('mxchat-sitemap-loading');
12 12 var loadingText = document.getElementById('mxchat-loading-text');
13 13 var sitemapUrlField = document.getElementById('sitemap_url');
@@ -13,34 +13,14 @@
13 13 var sitemapUrlField = document.getElementById('sitemap_url');
14 14 var submitButton = sitemapForm.querySelector('input[type="submit"]');
15 15
16 16 sitemapForm.addEventListener('submit', function() {
17 + // Hide the form fields
17 18 sitemapUrlField.style.display = 'none';
18 19 submitButton.style.display = 'none';
19 20
21 + // Show the loading spinner and text
20 22 loadingSpinner.style.display = 'flex';
21 23 loadingText.style.display = 'block';
22 - });
23 - }
24 -
25 - // Submit Content Form Loader
26 - var contentForm = document.getElementById('mxchat-content-form');
27 -
28 - if (contentForm) {
29 - var contentLoadingSpinner = document.getElementById('mxchat-content-loading');
30 - var contentLoadingText = document.getElementById('mxchat-content-loading-text');
31 - var articleContentField = document.getElementById('article_content');
32 - var articleUrlField = document.getElementById('article_url');
33 - var contentSubmitButton = contentForm.querySelector('input[type="submit"]');
34 -
35 - contentForm.addEventListener('submit', function() {
36 - // Hide form fields
37 - articleContentField.style.display = 'none';
38 - articleUrlField.style.display = 'none';
39 - contentSubmitButton.style.display = 'none';
40 -
41 - // Show loading spinner and text
42 - contentLoadingSpinner.style.display = 'flex';
43 - contentLoadingText.style.display = 'block';
44 24 });
45 25 }
46 26 });