summaryrefslogtreecommitdiffstats
path: root/apps/tasks/js
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-04-20 23:37:42 +0200
committerBart Visscher <bartv@thisnet.nl>2012-04-20 23:37:42 +0200
commitacea156a3d4ba94844b23946b2f24e8205f42462 (patch)
tree43637f85adcd7ee42071280e3628e07583478acf /apps/tasks/js
parent3d68732657dee0e131bb54c6ca4c4052cce7ce2f (diff)
downloadnextcloud-server-acea156a3d4ba94844b23946b2f24e8205f42462.tar.gz
nextcloud-server-acea156a3d4ba94844b23946b2f24e8205f42462.zip
Tasks: Save description field
Diffstat (limited to 'apps/tasks/js')
-rw-r--r--apps/tasks/js/tasks.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/tasks/js/tasks.js b/apps/tasks/js/tasks.js
index 684f671e41a..3647107eab8 100644
--- a/apps/tasks/js/tasks.js
+++ b/apps/tasks/js/tasks.js
@@ -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')