Skip to content

Commit 6cd07c4

Browse files
authored
fix: remove graph resize function (#3585)
1 parent fbcbbd6 commit 6cd07c4

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

cve_bin_tool/output_engine/html_reports/js/main.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@ function analysisShadowToggle(ele) {
1818
ele.classList.toggle('shadow-lg')
1919
}
2020

21-
function resizeGraph(ele) {
22-
setTimeout(() => {
23-
let modalId = ele.getAttribute('data-bs-target').substr(1)
24-
eval(document.getElementById(modalId).querySelector('script').innerHTML)
25-
}, 240)
26-
}
27-
2821
function modeInteractive() {
2922
var div_interactive = document.getElementById('interactive_mode')
3023
var div_print = document.getElementById('print_mode')

cve_bin_tool/output_engine/html_reports/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ <h5 class="fw-light p-t-5">Paths of Scanned Files</h5>
176176
<li class="list-group-item">
177177
<h5 class="fw-normal">{{path}}</h5>
178178
{% for product in all_paths[path]%}
179-
<a id="vendorProductPill" onclick="resizeGraph(this)"data-bs-toggle="modal" data-bs-target="#modal{{ product }}">
179+
<a id="vendorProductPill" data-bs-toggle="modal" data-bs-target="#modal{{ product }}">
180180
<span class="badge rounded-pill bg-info">{{product}}</span>
181181
</a>
182182
{% endfor %}

cve_bin_tool/output_engine/html_reports/templates/row_product.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<a onclick="resizeGraph(this)" class="list-group-item list-group-item-action" data-bs-toggle="modal"
1+
<a class="list-group-item list-group-item-action" data-bs-toggle="modal"
22
data-bs-target="#modal{{ fix_id }}" remarks="{{remarks}}">
33

44
<div class="row">

0 commit comments

Comments
 (0)