Browse Source

changes for the long desc

VISHAL BHANUSHALI 3 tháng trước cách đây
mục cha
commit
1009363c18
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      content_quality_tool_public/static/js/attr-extraction.js

+ 8 - 0
content_quality_tool_public/static/js/attr-extraction.js

@@ -2548,6 +2548,14 @@ function renderInlineForTable() {
             }
         }
 
+        const desclongCell = baseRow.querySelector('td:nth-child(6)');
+        if (desclongCell) {
+            const longDescDiv = desclongCell.querySelector('.long-desc');
+            if (longDescDiv) {
+                longDescDiv.innerHTML = highlightMatches(longDescDiv.innerHTML, mandatoryValues);
+            }
+        }
+
     });
 
     // Update summary statistics