.blur(function(){
var task = $(this).closest('.task').data('task');
var description = $(this).val();
- $.post('ajax/update_property.php', {id:task.id, type:'description', description:description}, function(jsondata){
+ $.post(OC.filePath('tasks', 'ajax', 'update_property.php'), {id:task.id, type:'description', description:description}, function(jsondata){
if(jsondata.status == 'success') {
task.description = description;
}
.blur(function(){
var task = $(this).closest('.task').data('task');
var categories = $(this).val();
- $.post('ajax/update_property.php', {id:task.id, type:'categories', categories:categories}, function(jsondata){
+ $.post(OC.filePath('tasks', 'ajax', 'update_property.php'), {id:task.id, type:'categories', categories:categories}, function(jsondata){
if(jsondata.status == 'success') {
task.categories = categories.split(',');
$categories.empty();
.blur(function(){
var task = $(this).closest('.task').data('task');
var location = $(this).val();
- $.post('ajax/update_property.php', {id:task.id, type:'location', location:location}, function(jsondata){
+ $.post(OC.filePath('tasks', 'ajax', 'update_property.php'), {id:task.id, type:'location', location:location}, function(jsondata){
if(jsondata.status == 'success') {
task.location = location;
task_container.find('.location').text(location);
var old_summary = task.summary;
task.summary = $(this).val();
OC.Tasks.setSummary(summary_container, task);
- $.post('ajax/update_property.php', {id:task.id, type:'summary', summary:task.summary}, function(jsondata){
+ $.post(OC.filePath('tasks', 'ajax', 'update_property.php'), {id:task.id, type:'summary', summary:task.summary}, function(jsondata){
if(jsondata.status != 'success') {
task.summary = old_summary;
OC.Tasks.setSummary(summary_container, task);
}
due = date.getTime()/1000;
}
- $.post('ajax/update_property.php', {id:task.id, type:'due', due:due, date:date_only?1:0}, function(jsondata){
+ $.post(OC.filePath('tasks', 'ajax', 'update_property.php'), {id:task.id, type:'due', due:due, date:date_only?1:0}, function(jsondata){
if(jsondata.status != 'success') {
task.due = old_due;
}
var $task = $(this).closest('.task'),
task = $task.data('task'),
checked = $(this).is(':checked');
- $.post('ajax/update_property.php', {id:task.id, type:'complete', checked:checked?1:0}, function(jsondata){
+ $.post(OC.filePath('tasks', 'ajax', 'update_property.php'), {id:task.id, type:'complete', checked:checked?1:0}, function(jsondata){
if(jsondata.status == 'success') {
task = jsondata.data;
$task.data('task', task)