PluginProbe
MxChat – AI Chatbot & Content Generation for WordPress / 3.2.2
MxChat – AI Chatbot & Content Generation for WordPress v3.2.2
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 +3 -16 3.2.63.2.2 View file →
@@ -8,14 +8,8 @@
8 8 const $pagination = $('.mxchat-kb-pagination');
9 9 const $processButton = $('#mxchat-kb-process-selected');
10 10 const $selectAll = $('#mxchat-kb-select-all');
11 11 const $selectionCount = $('.mxchat-kb-selection-count');
12 - const $acfPdfExtractCheckbox = $('#mxchat-kb-acf-pdf-extract');
13 -
14 - // Restore last-used ACF→PDF extract preference from the server-localized default.
15 - if (typeof mxchatSelector !== 'undefined' && mxchatSelector.acfPdfExtractDefault) {
16 - $acfPdfExtractCheckbox.prop('checked', true);
17 - }
18 12
19 13 // Filter elements
20 14 const $searchInput = $('#mxchat-kb-content-search');1
21 15 const $typeFilter = $('#mxchat-kb-content-type-filter');
@@ -506,15 +500,13 @@
506 500 .text((isUpdate ? 'Updating' : 'Processing') + ' ' + (index + 1) + ' of ' + totalToProcess + '...');
507 501 $progressModal.find('.mxchat-kb-progress-fill').css('width', percent + '%');
508 502
509 503 // UPDATED: Prepare AJAX data with bot_id
510 - const extractAcfPdfs = $acfPdfExtractCheckbox.prop('checked') ? 1 : 0;
511 504 const ajaxData = {
512 505 action: 'mxchat_process_selected_content',
513 506 nonce: mxchatSelector.nonce,
514 507 post_ids: [postId],
515 - is_update: isUpdate,
516 - extract_acf_pdfs: extractAcfPdfs
508 + is_update: isUpdate
517 509 };
518 510
519 511 // Add bot_id if multi-bot is active and not default
520 512 if (currentBotId && currentBotId !== 'default') {
@@ -542,15 +534,10 @@
542 534 title: response.data.title || ('ID: ' + postId)
543 535 });
544 536 }
545 537
546 - let successText = 'Successfully ' + (isUpdate ? 'updated' : 'processed') + ': ' + response.data.title;
547 - const pdfCount = parseInt(response.data.pdf_extracted_count, 10) || 0;
548 - if (pdfCount > 0) {
549 - const suffixTpl = (mxchatSelector.i18n && mxchatSelector.i18n.pdfExtractedSuffix) || ' (%d PDF(s) extracted)';
550 - successText += suffixTpl.replace('%d', pdfCount);
551 - }
552 - $progressModal.find('.mxchat-kb-current-item').text(successText);
538 + $progressModal.find('.mxchat-kb-current-item')
539 + .text('Successfully ' + (isUpdate ? 'updated' : 'processed') + ': ' + response.data.title);
553 540 } else {
554 541 failed++;
555 542 results.failed.push({
556 543 id: postId,