improved easylist: now toggling task state between pending and open
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -88,8 +88,8 @@
|
||||
function onclick(evt) {
|
||||
ignore(evt);
|
||||
let task = getTask(evt);
|
||||
if (task.status <= 20) { // open
|
||||
update(task,60);
|
||||
if (task.status == 20) { // open
|
||||
update(task,10);
|
||||
} else update(task,20);
|
||||
return false;
|
||||
}
|
||||
@@ -153,7 +153,7 @@
|
||||
<legend>{t('state_complete')}</legend>
|
||||
{#if sorted}
|
||||
{#each sorted as task}
|
||||
{#if task.status > 20 && match(task)}
|
||||
{#if task.status < 20 && match(task)}
|
||||
<div href={`/task/${task.id}/view`} title={task.description.source} task_id={task.id} {onclick} {oncontextmenu} {ontouchstart} {ontouchend} onmousedown={ontouchstart} onmouseup={ontouchend} >
|
||||
{task.name}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user