Tasks: Fix add task action
This commit is contained in:
parent
d0b7b01737
commit
2092caf6d3
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue