Skip to content
Snippets Groups Projects
Commit 2092caf6 authored by Bart Visscher's avatar Bart Visscher
Browse files

Tasks: Fix add task action

parent d0b7b017
No related branches found
No related tags found
No related merge requests found
......@@ -455,7 +455,7 @@ $(document).ready(function(){
$('#tasks_addtask').click(function(){
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'){
$('#tasks_list').append(OC.Tasks.create_task_div(jsondata.task));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment