Changes for page Desk allocation

Last modified by Ricardo Julio Rodríguez Fernández on 2025/05/13 08:31

From version 249.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/21 12:23
Change comment: There is no comment for this version
To version 252.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/21 12:26
Change comment: Kanban content updated

Summary

Details

Page properties
Content
... ... @@ -1,2 +1,3 @@
1 -{{kanban width="250px" source="https://portal.igfae.usc.es/xwiki/bin/download/Kanban%20playground%20for%20Ricardo/WebHome/room.json?rev=1.2" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}
1 +{{kanban width="250px" source="https://portal.igfae.usc.es/xwiki/bin/download/Kanban%20playground%20for%20Ricardo/WebHome/room_v02.json?rev=1.2" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}
2 +[{"id":"r01f01o00s00","color":"green","item":[{"title":"person 001 - LHCB"}],"title":"r01f01o00s00"},{"id":"r02f01o00s00","color":"blue","item":[{"title":"person 002 - STRI"}],"title":"r02f01o00s00"},{"id":"r03f02o00s00","color":"red","item":[{"title":"person 003 - LHCB"}],"title":"r03f02o00s00"},{"id":"r05f02o00s00","color":"yellow","item":[{"title":"person 003 - LHCB"},{"title":"person 004 - NUCL"}],"title":"r05f02o00s00"},{"id":"r08f01o00s00","color":"orange","item":[{"title":"person 119 - HQCD"},{"title":"person 078 - HQCD"}],"title":"r08f01o00s00"},{"id":"r16f01o00s00","color":"green","item":[{"title":"person 123 - AUGE"},{"title":"person 135 - LHCB"}],"title":"r16f01o00s00"},{"id":"r18f01o00s00","color":"green","item":[{"title":"person 256 - GRWA"}],"title":"r18f01o00s00"},{"id":"r19f01o00s00","color":"green","item":[{"title":"person 354 - LACC"}],"title":"r19f01o00s00"},{"id":"r30f01o00s00","color":"green","item":[{"title":"person 354 - NEXT"}],"title":"r30f01o00s00"}]
2 2  {{/kanban}}
XWiki.JavaScriptExtension[0]
Code
... ... @@ -86,7 +86,7 @@
86 86  
87 87   for (let i = 0; i < headerElements.length; i++) {
88 88   const element = headerElements[i];
89 - if (element.innerHTML.includes('Floor#: 2')) {
89 + if (element.innerHTML.includes('f02')) {
90 90   for (let j = 0; j < element.classList.length; j++) {
91 91   if (/kanban-header-\w+/.test(element.classList[j])) {
92 92   element.classList.remove(element.classList[j]);
... ... @@ -99,7 +99,7 @@
99 99  
100 100   for (let i = 0; i < headerElements.length; i++) {
101 101   const element = headerElements[i];
102 - if (element.innerHTML.includes('Floor#: 1')) {
102 + if (element.innerHTML.includes('f01')) {
103 103   for (let j = 0; j < element.classList.length; j++) {
104 104   if (/kanban-header-\w+/.test(element.classList[j])) {
105 105   element.classList.remove(element.classList[j]);