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;
|
if ( !doDelete ) return;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'ajax/task-delete.php',
|
url: 'ajax/task-delete.php',
|
||||||
|
type: 'POST',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
id: $("#form_id").val(),
|
id: $("#form_id").val(),
|
||||||
|
|
@ -102,6 +103,7 @@ function setTaskComplete(incomplete = false) {
|
||||||
if ( $("#form_id").val() == "0" ) return;
|
if ( $("#form_id").val() == "0" ) return;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'ajax/task-setcomplete.php',
|
url: 'ajax/task-setcomplete.php',
|
||||||
|
type: 'POST',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
id: $("#form_id").val(),
|
id: $("#form_id").val(),
|
||||||
|
|
@ -126,6 +128,7 @@ function setTaskComplete(incomplete = false) {
|
||||||
function toggleShowAll() {
|
function toggleShowAll() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'ajax/toggleshowall.php',
|
url: 'ajax/toggleshowall.php',
|
||||||
|
type: 'POST',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
showall: ($("#form_showall").prop('checked')) ? 1 : 0,
|
showall: ($("#form_showall").prop('checked')) ? 1 : 0,
|
||||||
|
|
@ -148,6 +151,7 @@ function toggleShowAll() {
|
||||||
function submitTask() {
|
function submitTask() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'ajax/task-submit.php',
|
url: 'ajax/task-submit.php',
|
||||||
|
type: 'POST',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
data: {
|
data: {
|
||||||
id: $("#form_id").val(),
|
id: $("#form_id").val(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user