Changes for page KanbanMacro
Last modified by superadmin on 2026/08/31 18:18
From version 3.1
edited by superadmin
on 2026/08/31 18:18
on 2026/08/31 18:18
Change comment:
Install extension [org.xwiki.contrib:macro-kanban/1.4.5]
To version 2.1
edited by Luca Ernemann
on 2026/06/26 21:47
on 2026/06/26 21:47
Change comment:
Install extension [org.xwiki.contrib:macro-kanban/1.4.3]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. superadmin1 +xwiki:XWiki.Luca
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -25,7 +25,7 @@ 25 25 var kanban = window.kanban = new jKanban({ 26 26 element: '#cp-app-kanban-content-${kanbanCounter}', 27 27 gutter: '15px', 28 - widthBoard: $ jsontool.serialize($xcontext.macro.params.width),28 + widthBoard: '${xcontext.macro.params.width}', 29 29 onChange: function () { 30 30 if (updateService && updateService!="") { 31 31 var newBoards = JSON.stringify(this.boards); ... ... @@ -149,7 +149,7 @@ 149 149 #if($xcontext.macro.params.awmupdatepath) 150 150 onBoardChange: function(itemId, boardId) { 151 151 var currentdoc = new XWiki.Document(XWiki.Model.resolve(itemId, XWiki.EntityType.DOCUMENT)); 152 - var restURL = currentdoc.getRestURL() + $ jsontool.serialize(${xcontext.macro.params.awmupdatepath});152 + var restURL = currentdoc.getRestURL() + "${xcontext.macro.params.awmupdatepath}"; 153 153 var data = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><property xmlns="http://www.xwiki.org" name="defaultEditMode" type="String"><value>' 154 154 + boardId + '</value></property>' 155 155 jQuery.ajax({ url: restURL, type: 'PUT', data: data, contentType: "application/xml", ... ... @@ -190,17 +190,17 @@ 190 190 }, 191 191 #end 192 192 #if($xcontext.macro.params.addItemButton) 193 - addItemButton: ('true' === $jsontool.serialize($xcontext.macro.params.addItemButton)), 193 + addItemButton: ${xcontext.macro.params.addItemButton}, 194 +#end 195 +#if($xcontext.macro.params.addBoardButton) 196 + addBoardButton: ${xcontext.macro.params.addBoardButton}, 194 194 #end 195 -#if($xcontext.macro.params. addBoardButton)196 - addBoardButton:('true' ===$jsontool.serialize($xcontext.macro.params.addBoardButton)),198 +#if($xcontext.macro.params.removeBoardButton) 199 + removeBoardButton: ${xcontext.macro.params.removeBoardButton}, 197 197 #end 198 -#if($xcontext.macro.params. removeBoardButton)199 - removeBoardButton:('true' ===$jsontool.serialize($xcontext.macro.params.removeBoardButton)),201 +#if($xcontext.macro.params.addRemoveButton) 202 + addRemoveButton: ${xcontext.macro.params.addRemoveButton}, 200 200 #end 201 -#if($xcontext.macro.params.addRemoveButton) 202 - addRemoveButton: ('true' === $jsontool.serialize($xcontext.macro.params.addRemoveButton)), 203 -#end 204 204 boards: boards 205 205 }); 206 206 }; ... ... @@ -209,18 +209,18 @@ 209 209 var counter = ${kanbanCounter}; 210 210 var updateService = "${xwiki.getURL("Macros.KanbanService")}?xpage=plain&outputSyntax=plain"; 211 211 #if($xcontext.macro.params.updateService) 212 - updateService = $ jsontool.serialize(${xcontext.macro.params.updateService});212 + updateService = "${xcontext.macro.params.updateService}"; 213 213 #end 214 214 #if($xcontext.macro.params.source) 215 215 var getdata = jQuery.getJSON("${xcontext.macro.params.source}", function(data) { 216 216 initKanban(data, updateService); 217 217 }); 218 - getdata. fail(function(xhr,status,error) {218 + getdata.error(function(xhr,status,error) { 219 219 #set($error = $escapetool.javascript($services.localization.render("kanban.load.error"))) 220 220 new XWiki.widgets.Notification('$error', 'error', '20'); 221 221 }); 222 222 #elseif($xcontext.macro.content) 223 - var boards = $ jsontool.parse($jsontool.serialize("$!xcontext.macro.content"));223 + var boards = ${xcontext.macro.content}; 224 224 initKanban(boards, updateService); 225 225 #else 226 226 var boards = [];