summaryrefslogtreecommitdiffstats
path: root/apps/tasks/js
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-06-09 14:32:51 +0200
committerBart Visscher <bartv@thisnet.nl>2012-06-09 14:39:41 +0200
commit4aee5a7ce43cb6d4c64838aa20d5f09adeba57ca (patch)
tree360fb1d8d0a6a38749cfcd29dfb61477b4f36e54 /apps/tasks/js
parent014895aeab547ce30b91c291b3d517d2dcc1c047 (diff)
downloadnextcloud-server-4aee5a7ce43cb6d4c64838aa20d5f09adeba57ca.tar.gz
nextcloud-server-4aee5a7ce43cb6d4c64838aa20d5f09adeba57ca.zip
Tasks: Use POST for ajax calls that change data
Diffstat (limited to 'apps/tasks/js')
-rw-r--r--apps/tasks/js/tasks.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/tasks/js/tasks.js b/apps/tasks/js/tasks.js
index 60d2a523be1..d1e3a9969b4 100644
--- a/apps/tasks/js/tasks.js
+++ b/apps/tasks/js/tasks.js
@@ -440,7 +440,7 @@ $(document).ready(function(){
$('#tasks_delete').live('click',function(){
var id = $('#task_details').data('id');
- $.getJSON('ajax/delete.php',{'id':id},function(jsondata){
+ $.post('ajax/delete.php',{'id':id},function(jsondata){
if(jsondata.status == 'success'){
$('#tasks [data-id="'+jsondata.data.id+'"]').remove();
$('#task_details').data('id','');
@@ -455,7 +455,7 @@ $(document).ready(function(){
$('#tasks_addtask').click(function(){
var input = $('#tasks_newtask').val();
- $.getJSON(OC.filePath('tasks', 'ajax', 'addtask.php'),{text:input},function(jsondata){
+ $.post(OC.filePath('tasks', 'ajax', 'addtask.php'),{text:input},function(jsondata){
if(jsondata.status == 'success'){
$('#tasks_list').append(OC.Tasks.create_task_div(jsondata.task));
}