Tasks: Fix add task action

This commit is contained in:
Bart Visscher 2012-05-05 18:16:14 +02:00
parent d0b7b01737
commit 2092caf6d3
1 changed files with 1 additions and 1 deletions

View File

@ -455,7 +455,7 @@ $(document).ready(function(){
$('#tasks_addtask').click(function(){ $('#tasks_addtask').click(function(){
var input = $('#tasks_newtask').val(); var input = $('#tasks_newtask').val();
$.getJSON('ajax/addtask.php',{text:input},function(jsondata){ $.getJSON(OC.filePath('tasks', 'ajax', 'addtask.php'),{text:input},function(jsondata){
if(jsondata.status == 'success'){ if(jsondata.status == 'success'){
$('#tasks_list').append(OC.Tasks.create_task_div(jsondata.task)); $('#tasks_list').append(OC.Tasks.create_task_div(jsondata.task));
} }