From eff322f20e4101030a2bf1ee41ab0fa9504f2b4d Mon Sep 17 00:00:00 2001 From: Yogesh Ojha Date: Fri, 5 Nov 2021 11:29:09 +0530 Subject: [PATCH] Fixed Add todo section --- .../templates/startScan/detail_scan.html | 38 +++++++++++++++++++ web/static/custom/todo.js | 13 ++++--- 2 files changed, 45 insertions(+), 6 deletions(-) diff --git a/web/startScan/templates/startScan/detail_scan.html b/web/startScan/templates/startScan/detail_scan.html index a0fc4103..4c108506 100644 --- a/web/startScan/templates/startScan/detail_scan.html +++ b/web/startScan/templates/startScan/detail_scan.html @@ -692,6 +692,44 @@ Scan Findings + {% endblock main_content %} {% block page_level_script %} diff --git a/web/static/custom/todo.js b/web/static/custom/todo.js index 37aaa763..ea65f3c3 100644 --- a/web/static/custom/todo.js +++ b/web/static/custom/todo.js @@ -90,14 +90,15 @@ function change_todo_priority(todo_id, imp_type){ function list_subdomain_todos(subdomain_id, subdomain_name){ $('.modal-title').html(`Todos for subdomain ${subdomain_name}`); - $('#exampleModal').modal('show'); - $('.modal-text').empty(); $('#modal-footer').empty(); - $('.modal-text').append(``); + $('#modal_dialog').modal('show'); + $('#modal-content').empty(); + $('#modal-footer').empty(); + $('#modal-content').append(``); // query subdomains $.getJSON(`/api/listTodoNotes/?subdomain_id=${subdomain_id}&format=json`, function(data) { $('#modal-loader').empty(); - $('#modal-text-content').empty(); - $('#modal-text-content').append(``); + $('#modal-content').empty(); + $('#modal-content').append(``); for (todo in data['notes']){ todo_obj = data['notes'][todo]; important_badge = ''; @@ -125,7 +126,7 @@ function list_subdomain_todos(subdomain_id, subdomain_name){ } function get_task_details(todo_id){ - $('#exampleModal').modal('show'); + $('#modal_dialog').modal('show'); $('.modal-text').empty(); $('#modal-footer').empty(); $('.modal-text').append(``); $.getJSON(`/api/listTodoNotes/?todo_id=${todo_id}&format=json`, function(data) {