Changes for page Desk allocation

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

From version 276.2
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/27 10:30
Change comment: Added comment
To version 278.1
edited by Ricardo Julio Rodríguez Fernández
on 2024/04/28 16:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Kanban playground for Ricardo
1 +Desks allocation in new premises
Content
... ... @@ -1,2 +1,1 @@
1 -{{kanban width="250px" source="https://gitlab.com/api/v4/projects/31845880/repository/files/data%2froom.json/raw?ref=main&private_token=glpat-PxoohoxpWUqTMAs4-s4Q" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}
2 -{{/kanban}}
1 +{{kanban width="250px" source="https://gitlab.com/api/v4/projects/31845880/repository/files/data%2froom.json/raw?ref=main&private_token=glpat-PxoohoxpWUqTMAs4-s4Q" addBoardButton="true" addItemButton="true" removeBoardButton="true" removeBoardItem="true"}}{{/kanban}}
XWiki.JavaScriptExtension[0]
Code
... ... @@ -109,5 +109,18 @@
109 109   }
110 110   }
111 111   }
112 +
113 + for (let i = 0; i < headerElements.length; i++) {
114 + const element = headerElements[i];
115 + if (element.innerHTML.includes('rDI')) {
116 + for (let j = 0; j < element.classList.length; j++) {
117 + if (/kanban-header-\w+/.test(element.classList[j])) {
118 + element.classList.remove(element.classList[j]);
119 + element.style.backgroundColor = '#7fdb4a';
120 + break;
121 + }
122 + }
123 + }
124 + }
112 112  };
113 113