Tasks: Save description field
This commit is contained in:
parent
3d68732657
commit
acea156a3d
2 changed files with 13 additions and 0 deletions
|
@ -21,6 +21,10 @@ switch($property) {
|
|||
$summary = $_POST['summary'];
|
||||
$vtodo->setString('SUMMARY', $summary);
|
||||
break;
|
||||
case 'description':
|
||||
$description = $_POST['description'];
|
||||
$vtodo->setString('DESCRIPTION', $description);
|
||||
break;
|
||||
case 'due':
|
||||
$due = $_POST['due'];
|
||||
$due_date_only = $_POST['date'];
|
||||
|
|
|
@ -64,6 +64,15 @@ OC.Tasks = {
|
|||
task_container.find('.task_more').click(OC.Tasks.moreClickHandler);
|
||||
var description = $('<textarea>')
|
||||
.addClass('description')
|
||||
.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){
|
||||
if(jsondata.status == 'success') {
|
||||
task.description = description;
|
||||
}
|
||||
});
|
||||
})
|
||||
.text(task.description);
|
||||
var due = $('<span>')
|
||||
.addClass('due')
|
||||
|
|
Loading…
Reference in a new issue