From 6cd07c44ff3b7ddc6f5ad58404ef6e4e7e459b18 Mon Sep 17 00:00:00 2001 From: Terri Oda Date: Wed, 13 Dec 2023 09:17:28 -0800 Subject: [PATCH] fix: remove graph resize function (#3585) --- cve_bin_tool/output_engine/html_reports/js/main.js | 7 ------- .../output_engine/html_reports/templates/base.html | 2 +- .../output_engine/html_reports/templates/row_product.html | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/cve_bin_tool/output_engine/html_reports/js/main.js b/cve_bin_tool/output_engine/html_reports/js/main.js index d0e868f62a..465595921c 100644 --- a/cve_bin_tool/output_engine/html_reports/js/main.js +++ b/cve_bin_tool/output_engine/html_reports/js/main.js @@ -18,13 +18,6 @@ function analysisShadowToggle(ele) { ele.classList.toggle('shadow-lg') } -function resizeGraph(ele) { - setTimeout(() => { - let modalId = ele.getAttribute('data-bs-target').substr(1) - eval(document.getElementById(modalId).querySelector('script').innerHTML) - }, 240) -} - function modeInteractive() { var div_interactive = document.getElementById('interactive_mode') var div_print = document.getElementById('print_mode') diff --git a/cve_bin_tool/output_engine/html_reports/templates/base.html b/cve_bin_tool/output_engine/html_reports/templates/base.html index 624e3f7d6d..c6acd196ef 100644 --- a/cve_bin_tool/output_engine/html_reports/templates/base.html +++ b/cve_bin_tool/output_engine/html_reports/templates/base.html @@ -176,7 +176,7 @@
Paths of Scanned Files
  • {{path}}
    {% for product in all_paths[path]%} - + {{product}} {% endfor %} diff --git a/cve_bin_tool/output_engine/html_reports/templates/row_product.html b/cve_bin_tool/output_engine/html_reports/templates/row_product.html index 4ef0272511..622b9c7281 100644 --- a/cve_bin_tool/output_engine/html_reports/templates/row_product.html +++ b/cve_bin_tool/output_engine/html_reports/templates/row_product.html @@ -1,4 +1,4 @@ -