Changes for page Helpers
Last modified by Benjamin Fischer on 2025/06/17 11:57
From version 2.17
edited by Benjamin Fischer
on 2025/06/03 16:26
on 2025/06/03 16:26
Change comment:
There is no comment for this version
To version 2.15
edited by Benjamin Fischer
on 2025/06/03 16:19
on 2025/06/03 16:19
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -200,12 +200,9 @@ 200 200 ttApply({ memo: { tableId: tab.id }}); 201 201 }); 202 202 203 - document.observe('xwiki:dom:loaded', () => { 204 - for ( 205 - let e = document.querySelector(`#leftPanels a[href="${location.pathname.replace(/^(\/bin\/)[^\/]+(\/.+)/, "$1view$2")}"]`); 206 - e; 207 - e = e.parentElement 208 - ) for(const c of e.classList) 203 + document.addEventListener("load", () => { 204 + for (let e = document.querySelector(`#leftPanels a[href="${location.pathname.replace(/^(\/bin\/)[^\/]+(\/.+)/, "$1view$2")}"]`); e; e = e.parentElement) 205 + for(const c of e.classList) 209 209 switch(c) { 210 210 case "xDropdown": 211 211 e.classList.add("open");