Last modified by Benjamin Fischer on 2025/07/10 12:57

From version 2.1
edited by Benjamin Fischer
on 2025/07/10 12:57
Change comment: Install extension [org.xwiki.contrib:application-mocca-calendar-ui/2.9.10]
To version 1.1
edited by Benjamin Fischer
on 2024/11/05 16:22
Change comment: Install extension [org.xwiki.contrib:application-mocca-calendar-ui/2.9.6]

Summary

Details

Page properties
Content
... ... @@ -35,6 +35,7 @@
35 35  {{/velocity}}
36 36  {{velocity wiki="false"}}
37 37  #if("$!{request.outputSyntax}" == 'plain')
38 + $response.setContentType('application/json')
38 38   #set($offset = $numbertool.toNumber($request.getParameter('offset')))
39 39   #set($limit = $numbertool.toNumber($request.getParameter('stepSize')))
40 40   #if($limit > 0 && $offset >=0)
... ... @@ -45,7 +45,7 @@
45 45   #else
46 46   #set($result = { 'errorMessage' : 'parameter "offset" or "stepSize" is missing'})
47 47   #end
48 - #jsonResponse($result)
49 + $jsontool.serialize($result)
49 49  #end
50 50  {{/velocity}}
51 51