Changes for page Home

Last modified by Benjamin Fischer on 2025/06/04 14:20

From version 72.58
edited by Benjamin Fischer
on 2024/11/07 12:23
Change comment: There is no comment for this version
To version 72.59
edited by Benjamin Fischer
on 2024/11/07 12:28
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -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,6 +109,7 @@
109 109   },
110 110   monthCols: {
111 111   columnFormat: "MMM",
112 + weekFormat: "W",
112 112   titleFormat: "YYYY",
113 113   buttonText: "year",
114 114   },