Changes for page KanbanMacro
Last modified by David Punzet on 2026/04/17 09:00
From version 1.1
edited by Admin Admin
on 2026/03/20 09:18
on 2026/03/20 09:18
Change comment:
Install extension [org.xwiki.contrib:macro-kanban/1.4.2]
To version 2.1
edited by David Punzet
on 2026/04/17 09:00
on 2026/04/17 09:00
Change comment:
Install extension [org.xwiki.contrib:macro-kanban/1.4.3]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. admin1 +XWiki.d\.punzet@testbirds\.com
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -27,7 +27,7 @@ 27 27 * jKanban 28 28 * Vanilla Javascript plugin for manage kanban boards 29 29 * 30 - * @ site: http://www.riccardotartaglia.it/jkanban/30 + * @url: http://www.riccardotartaglia.it/jkanban/ 31 31 * @author: Riccardo Tartaglia 32 32 */ 33 33 ... ... @@ -334,14 +334,12 @@ 334 334 nodeItem.dropfn = itemKanban.drop; 335 335 nodeItem.dataset.eid = itemKanban.id; 336 336 337 - var nodeItemTitle = document.createElement('div'); 337 + var nodeItemTitle = document.createElement(itemKanban.url ? 'a' : 'div'); 338 338 nodeItemTitle.classList.add('kanban-item-title'); 339 339 nodeItemTitle.innerHTML = itemKanban.title; 340 340 nodeItemTitle.clickfn = itemKanban.click; 341 341 if (itemKanban.url) { 342 - nodeItemTitle.addEventListener('click', function (e) { 343 - location = this.url; 344 - }.bindAsEventListener(itemKanban)); 342 + nodeItemTitle.href = itemKanban.url; 345 345 } else { 346 346 // add click handler of item 347 347 __onclickHandler(nodeItemTitle);
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -16,7 +16,7 @@ 16 16 <script type="text/javascript"> 17 17 require.config({ 18 18 paths: { 19 - jkanban: '$xwiki.getURL("Macros.KanbanMacro", "jsx", "language=${xcontext.la nguage}")'19 + jkanban: '$xwiki.getURL("Macros.KanbanMacro", "jsx", "language=${xcontext.locale}")' 20 20 } 21 21 }); 22 22 require(['jquery','jkanban'], function(jQuery) {