Changes for page Home
Last modified by Benjamin Fischer on 2025/06/04 14:20
From version 72.59
edited by Benjamin Fischer
on 2024/11/07 12:28
on 2024/11/07 12:28
Change comment:
There is no comment for this version
To version 72.57
edited by Benjamin Fischer
on 2024/11/07 12:18
on 2024/11/07 12:18
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -47,7 +47,7 @@ 47 47 const ms = ys.clone().add({month}) 48 48 const me = ms.clone().add({month: 1}); 49 49 const md = me.diff(ms, "days"); 50 - const mv = yv.filter(t => ms.isBefore(t.end) &&t.start.isBefore(me));50 + const mv = yv.filter(t => ms.isBefore(t.end) || t.start.isBefore(me)); 51 51 52 52 head.push(E("th", {colspan}, ms.format(cf))); 53 53 ... ... @@ -62,11 +62,11 @@ 62 62 while(mv[0]?.start.isBefore(de)) { 63 63 const v = mv.shift(); 64 64 const d = Math.ceil(v.end.max(me).diff(ds, "days", true)); 65 - if (v.rendering == "background") {65 + if (v.rendering == "background") 66 66 if (v.color) 67 67 for (const i of range(d)) 68 68 bgc[day + i] = v.color; 69 - }else {69 + else { 70 70 const e = E("div", v.title); 71 71 e.style.height = `${100 * d}%`; 72 72 if (v.color) e.style.borderColor = e.style.backgroundColor = v.color; ... ... @@ -109,7 +109,6 @@ 109 109 }, 110 110 monthCols: { 111 111 columnFormat: "MMM", 112 - weekFormat: "W", 113 113 titleFormat: "YYYY", 114 114 buttonText: "year", 115 115 },