Expand/collapse all subtasks when pressing the Shift key while clicking the toggle icon
This commit is contained in:
parent
5ef856ad6b
commit
777fb89394
1 changed files with 2 additions and 0 deletions
|
@ -233,6 +233,8 @@ function rcube_tasklist_ui(settings)
|
|||
li.children('.childtasks:first').toggle();
|
||||
$(e.target).toggleClass('collapsed').html(rec.collapsed ? '▶' : '▼');
|
||||
rcmail.http_post('tasks/task', { action:'collapse', t:{ id:rec.id, list:rec.list }, collapsed:rec.collapsed?1:0 });
|
||||
if (e.shiftKey) // expand/collapse all childs
|
||||
li.children('.childtasks:first .childtoggle.'+(rec.collapsed?'expanded':'collapsed')).click();
|
||||
break;
|
||||
|
||||
case 'complete':
|
||||
|
|
Loading…
Add table
Reference in a new issue