Skip to content

Commit

Permalink
fix: remove graph resize function
Browse files Browse the repository at this point in the history
  • Loading branch information
terriko committed Dec 12, 2023
1 parent 2846d41 commit 1cc82bf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions cve_bin_tool/output_engine/html_reports/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ <h5 class="fw-light p-t-5">Paths of Scanned Files</h5>
<li class="list-group-item">
<h5 class="fw-normal">{{path}}</h5>
{% for product in all_paths[path]%}
<a id="vendorProductPill" onclick="resizeGraph(this)"data-bs-toggle="modal" data-bs-target="#modal{{ product }}">
<a id="vendorProductPill" data-bs-toggle="modal" data-bs-target="#modal{{ product }}">
<span class="badge rounded-pill bg-info">{{product}}</span>
</a>
{% endfor %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<a onclick="resizeGraph(this)" class="list-group-item list-group-item-action" data-bs-toggle="modal"
<a class="list-group-item list-group-item-action" data-bs-toggle="modal"
data-bs-target="#modal{{ fix_id }}" remarks="{{remarks}}">

<div class="row">
Expand Down

0 comments on commit 1cc82bf

Please sign in to comment.