Skip to content

Commit

Permalink
fix radio value fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
yogeshojha committed Aug 28, 2024
1 parent e3e6409 commit ff28990
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions web/startScan/templates/startScan/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -660,19 +660,21 @@ <h6 class="text-primary mb-3">Additional Options</h6>
}

function preview_report(id, domain_name){
var report_type = $("#report_type_select option:selected").val();
var report_type = $('input[name="reportType"]:checked').val();
var is_ignore_info_vuln = $('#excludeInfoFindings').is(":checked");
var url = `/scan/create_report/${id}?report_type=${report_type}`;
if ($('#report_ignore_info_vuln').is(":checked")) {
if (is_ignore_info_vuln) {
url += `&ignore_info_vuln`
}
$('#generateReportModal').modal('hide');
window.open(url, '_blank').focus();
}

function generate_report(id, domain_name) {
var report_type = $("#report_type_select option:selected").val();
var report_type = $('input[name="reportType"]:checked').val();
var is_ignore_info_vuln = $('#excludeInfoFindings').is(":checked");
var url = `/scan/create_report/${id}?report_type=${report_type}&download`;
if ($('#report_ignore_info_vuln').is(":checked")) {
if (is_ignore_info_vuln) {
url += `&ignore_info_vuln`
}
$('#generateReportModal').modal('hide');
Expand Down

0 comments on commit ff28990

Please sign in to comment.