diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-04-18 17:28:16 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-04-18 17:28:16 +0200 |
commit | 921fc59d8fb6f11b377531d60d3f956e90a5e617 (patch) | |
tree | 68d64cc5f01f29a87c1f1813ad0ba20057785a01 /apps/tasks/js | |
parent | 6ba30cb713b4abd0500fb692f6227284f620e74a (diff) | |
download | nextcloud-server-921fc59d8fb6f11b377531d60d3f956e90a5e617.tar.gz nextcloud-server-921fc59d8fb6f11b377531d60d3f956e90a5e617.zip |
Tasks: Add "more" block containing description
Diffstat (limited to 'apps/tasks/js')
-rw-r--r-- | apps/tasks/js/tasks.js | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/apps/tasks/js/tasks.js b/apps/tasks/js/tasks.js index c6b99ac408d..1381a356fb8 100644 --- a/apps/tasks/js/tasks.js +++ b/apps/tasks/js/tasks.js @@ -23,7 +23,7 @@ OC.Tasks = { .data('show_count', 0) .attr('data-id', task.id) .append(summary_container) - //.append(actions.clone().removeAttr('id')) + .append(actions.clone().removeAttr('id')) ; task_container.find('.summary a').click(OC.Tasks.summaryClickHandler); var checkbox = $('<input type="checkbox">') @@ -61,6 +61,14 @@ OC.Tasks = { ); }); } + task_container.find('.task_more').click(OC.Tasks.moreClickHandler); + var description = $('<textarea>') + .addClass('description') + .text(task.description); + $('<div>') + .addClass('more') + .append(description) + .appendTo(task_container); return task_container; }, filter:function(tag, find_filter) { @@ -148,6 +156,11 @@ OC.Tasks = { input.focus(); return false; }, + moreClickHandler:function(event){ + var $task = $(this).closest('.task'), + task = $task.data('task'); + $task.find('.more').show(); + }, complete_task:function() { var $task = $(this).closest('.task'), task = $task.data('task'), |