Skip to content

fix: remove resizeGraph function #3585

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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