fixed: allow to display events of current day only

This commit is contained in:
quenousimporte 2024-01-23 09:42:34 +01:00
parent 7debab3b39
commit 6750673779
1 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,11 @@ function showresult()
if (xhr.status == 200)
{
var params = new URLSearchParams(window.location.search);
var recent = parseInt(params.get("recent")) || 7;
var recent = parseInt(params.get("recent"));
if (isNaN(recent))
{
recent = 7;
}
var html = "<h1>Evénements à venir</h1>";
html += "<p>En gras: modifié les " + recent + " derniers jours</p>";
var o = ics2json(xhr.responseText);