Skip to content

Commit

Permalink
Merge pull request #1316 from yogeshojha/1315-bug-cant-delete-todo-fr…
Browse files Browse the repository at this point in the history
…om-scan-history-detail-scan

Fix #1315 Fix for todo URLs not compatible with slugs
  • Loading branch information
yogeshojha authored Jul 20, 2024
2 parents 7ee03c5 + 1e5b894 commit 3c3430d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/static/custom/todo.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function todoCheckboxListener(){
else if ($(this).is(":not(:checked)")) {
$("#todo_parent_"+note_id).removeClass('text-strike');
}
fetch('../../recon_note/flip_todo_status', {
fetch('../../../recon_note/flip_todo_status', {
method: 'post',
headers: {
"X-CSRFToken": getCookie("csrftoken")
Expand All @@ -32,7 +32,7 @@ function delete_todo(todo_id){
padding: '2em',
showLoaderOnConfirm: true,
preConfirm: function() {
return fetch('../../recon_note/delete_note', {
return fetch('../../../recon_note/delete_note', {
method: 'POST',
credentials: "same-origin",
headers: {
Expand Down Expand Up @@ -68,7 +68,7 @@ function change_todo_priority(todo_id, imp_type){
snackbar_text = 'Todo Marked as Important';
}
scan_id = parseInt(document.getElementById('summary_identifier_val').value);
fetch('../../recon_note/flip_important_status', {
fetch('../../../recon_note/flip_important_status', {
method: 'post',
headers: {
"X-CSRFToken": getCookie("csrftoken")
Expand Down

0 comments on commit 3c3430d

Please sign in to comment.