implemented various task features:

- saving on CTRL+S
- editing of
    - start date
    - due date
    - members
This commit is contained in:
2025-07-26 21:23:58 +02:00
parent 58986a5c59
commit 91aa421ae9
11 changed files with 203 additions and 62 deletions

View File

@@ -75,6 +75,14 @@
return Object.fromEntries(candidates);
}
function onkeydown(e){
if (e.ctrlKey && e.keyCode === 83) {
e.preventDefault();
saveTask();
}
}
async function saveTask(){
var url = api('task/add');
const resp = await fetch(url,{
@@ -103,7 +111,7 @@
<fieldset>
<legend>{t('add_task')}</legend>
<table>
<table {onkeydown}>
<tbody>
<tr>
<th>