Configure ajax calls to use POST type where appropriate
This commit is contained in:
parent
5514113103
commit
c59df02d6f
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user