Changes for page Helpers

Last modified by Benjamin Fischer on 2025/06/17 11:57

From version 2.15
edited by Benjamin Fischer
on 2025/06/03 16:19
Change comment: There is no comment for this version
To version 2.16
edited by Benjamin Fischer
on 2025/06/03 16:23
Change comment: There is no comment for this version

Summary

Details

XWiki.JavaScriptExtension[0]
Code
... ... @@ -200,7 +200,7 @@
200 200   ttApply({ memo: { tableId: tab.id }});
201 201   });
202 202  
203 - document.addEventListener("load", () => {
203 + document.observe('xwiki:dom:loaded', () => {
204 204   for (let e = document.querySelector(`#leftPanels a[href="${location.pathname.replace(/^(\/bin\/)[^\/]+(\/.+)/, "$1view$2")}"]`); e; e = e.parentElement)
205 205   for(const c of e.classList)
206 206   switch(c) {