PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 3.0.7
MxChat – AI Chatbot & Content Generation for WordPress v3.0.7
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/content-selector.js +4 -12 3.2.33.0.7 View file →
@@ -48,9 +48,9 @@
48 48 $('.mxchat-import-box').removeClass('active');
49 49 $box.addClass('active');
50 50
51 51 // Hide all input areas
52 - $('#mxchat-url-input-area, #mxchat-content-input-area, #mxchat-pdf-upload-area').hide();
52 + $('#mxchat-url-input-area, #mxchat-content-input-area').hide();
53 53
54 54 // Hide sitemap-specific sections (but NOT for sitemap option - let detection logic handle it)
55 55 if (option !== 'sitemap') {
56 56 $('#mxchat-detected-sitemaps, #mxchat-no-sitemaps, #mxchat-sitemaps-loading').hide();
@@ -57,15 +57,15 @@
57 57 }
58 58
59 59 // Handle different import options
60 60 switch (option) {
61 - case 'pdf-url':
61 + case 'pdf':
62 62 case 'sitemap':
63 63 case 'url':
64 64 // Show URL input area with appropriate placeholder
65 65 $('#mxchat-url-input-area').show();
66 66 $('#sitemap_url').attr('placeholder', $box.data('placeholder'));
67 - $('#import_type').val(option === 'pdf-url' ? 'pdf' : option);
67 + $('#import_type').val(option);
68 68
69 69 // UPDATED: Add or update bot_id hidden field for URL forms
70 70 updateBotIdInForm('#mxchat-url-form');
71 71
@@ -70,9 +70,9 @@
70 70 updateBotIdInForm('#mxchat-url-form');
71 71
72 72 // Update the description text based on the import type
73 73 let descriptionText = '';
74 - if (option === 'pdf-url') {
74 + if (option === 'pdf') {
75 75 descriptionText = 'Import a PDF document by entering its URL above. PDFs are processed via cron job. If processing does not start, you can manually process batch 5 pages at a time.';
76 76 } else if (option === 'sitemap') {
77 77 descriptionText = 'Enter a content-specific sub-sitemap URL, not the sitemap index. Sitemaps are processed via cron job. If processing does not start, you can manually process batch 5 pages at a time.';
78 78 // Re-show sitemap sections if they were previously loaded
@@ -96,16 +96,8 @@
96 96 $('#mxchat-content-input-area').show();
97 97
98 98 // UPDATED: Add or update bot_id hidden field for content forms
99 99 updateBotIdInForm('#mxchat-content-form');
100 - break;
101 -
102 - case 'pdf-upload':
103 - // Show PDF file upload area
104 - $('#mxchat-pdf-upload-area').show();
105 -
106 - // Add or update bot_id hidden field for PDF upload form
107 - updateBotIdInForm('#mxchat-pdf-upload-form');
108 100 break;
109 101 }
110 102 });
111 103