Expand/collapse all subtasks when pressing the Shift key while clicking the toggle icon

This commit is contained in:
Thomas Bruederli 2013-10-04 09:31:01 +02:00
parent 5ef856ad6b
commit 777fb89394

View file

@ -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':