From c59df02d6f8472f0c168be623e9aec1e73627207 Mon Sep 17 00:00:00 2001 From: Junior Date: Sun, 22 Nov 2026 12:24:03 -0500 Subject: [PATCH] Configure ajax calls to use POST type where appropriate --- js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/main.js b/js/main.js index 9a333ca..3997d06 100644 --- a/js/main.js +++ b/js/main.js @@ -78,6 +78,7 @@ function deleteTask() { if ( !doDelete ) return; $.ajax({ url: 'ajax/task-delete.php', + type: 'POST', dataType: 'json', data: { id: $("#form_id").val(), @@ -102,6 +103,7 @@ function setTaskComplete(incomplete = false) { if ( $("#form_id").val() == "0" ) return; $.ajax({ url: 'ajax/task-setcomplete.php', + type: 'POST', dataType: 'json', data: { id: $("#form_id").val(), @@ -126,6 +128,7 @@ function setTaskComplete(incomplete = false) { function toggleShowAll() { $.ajax({ url: 'ajax/toggleshowall.php', + type: 'POST', dataType: 'json', data: { showall: ($("#form_showall").prop('checked')) ? 1 : 0, @@ -148,6 +151,7 @@ function toggleShowAll() { function submitTask() { $.ajax({ url: 'ajax/task-submit.php', + type: 'POST', dataType: 'json', data: { id: $("#form_id").val(),