Configure ajax calls to use POST type where appropriate

This commit is contained in:
Junior 2026-11-22 12:24:03 -05:00
parent 5514113103
commit c59df02d6f

View File

@ -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(),