Changes for page Home
Last modified by Benjamin Fischer on 2025/06/04 14:20
From version 72.24
edited by Benjamin Fischer
on 2024/11/06 12:52
on 2024/11/06 12:52
Change comment:
There is no comment for this version
To version 72.20
edited by Benjamin Fischer
on 2024/11/06 12:17
on 2024/11/06 12:17
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -1,16 +1,6 @@ 1 -require(["jquery", "fullcalendar"], function (jq) { 2 - const FC = jq.fullCalendar; 3 - const View = FC.View; 4 - 5 - const MonthColView = FC.View.extend({ 6 - 7 - }); 8 - 9 - FC.defineView('monthCols', MonthColView); 10 - 11 - 1 +require(["jquery", "fullcalendar"], function ($) { 12 12 const init = () => { 13 - jq("#calendarCustom").fullCalendar({3 + $("#calendarCustom").fullCalendar({ 14 14 views: { 15 15 month: { 16 16 columnFormat: "ddd", ... ... @@ -41,10 +41,6 @@ 41 41 maxTime: "23:00", 42 42 defaultDate: "2024-11-06", 43 43 editable: false, 44 - eventDataTransform: event => { 45 - if (event.url.split("/")[4] === "Holidays") event.rendering = "background"; 46 - return event; 47 - }, 48 48 eventRender: function (event, element) { 49 49 // Render augmentation hook, use: event.html 50 50 }, ... ... @@ -51,6 +51,6 @@ 51 51 }); 52 52 }; 53 53 54 - jq(document).ready(init);40 + $(document).ready(init); 55 55 }); 56 56