From 1e082de1d574ab0cf3404e63d65798210590e5f3 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Fri, 4 Mar 2022 09:35:07 +0100 Subject: timetrack: UI --- modules/timetrack/timetrack.html | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'modules') diff --git a/modules/timetrack/timetrack.html b/modules/timetrack/timetrack.html index 513684e..f5ee32e 100644 --- a/modules/timetrack/timetrack.html +++ b/modules/timetrack/timetrack.html @@ -97,7 +97,7 @@ function tablerowfor(ev){ e2.addEventListener("click",function(){ if(!confirm("Really delete check-"+ev.type+" event \""+ev.sheet+"\" (\""+ev.text+"\") at "+formatdate(ev.date)+"?"))return; fetch("DELETE","/timetrack/event",ev.id,function(status,body){ - if(status==200)getlist(); + if(status==200)getlist(false); else alert("Delete failed: "+body); }); }); @@ -265,7 +265,7 @@ function handleReceivedList(list){ refreshcalendar(list); } -function getlist(){ +function getlist(isinitial){ fetch("GET","/timetrack/list",function(status,body){ if(status!=200){ alert("Error: "+body); @@ -281,6 +281,7 @@ function getlist(){ for(var i=0;i (optional)
Date:
- -
- + +

-- cgit v1.2.3-70-g09d2