Changes for page Helpers
Last modified by Benjamin Fischer on 2025/06/17 11:57
From version 1.7
edited by Benjamin Fischer
on 2025/05/15 16:18
on 2025/05/15 16:18
Change comment:
There is no comment for this version
To version 1.14
edited by Benjamin Fischer
on 2025/05/15 16:47
on 2025/05/15 16:47
Change comment:
There is no comment for this version
Summary
-
Objects (1 modified, 0 added, 0 removed)
Details
- XWiki.JavaScriptExtension[0]
-
- Code
-
... ... @@ -29,6 +29,11 @@ 29 29 (v, i) => v.textContent = tagCols[tableId][i][0] 30 30 ); 31 31 32 + // filter fields 33 + tab.querySelectorAll(".xwiki-livetable-display-header-filter input[type=text]").forEach( 34 + v => v.placeholder = "Filter ..."; 35 + ); 36 + 32 32 // column tooltips 33 33 tab.querySelectorAll(".xwiki-livetable-display-header-text").forEach( 34 34 el => { ... ... @@ -62,7 +62,7 @@ 62 62 } 63 63 }); 64 64 65 - document.observe("xwiki:livetable:receivedEntries", ({ memo: { data }, tableId }) => {70 + document.observe("xwiki:livetable:receivedEntries", ({ memo: { data, tableId } }) => { 66 66 const rf = livetableRowHook[tableId]; 67 67 for (const row of data.rows) { 68 68 if (rf) rf(row); ... ... @@ -74,10 +74,18 @@ 74 74 want[0] === true 75 75 ? Array.from(tags) 76 76 : want.filter(tag => tags.delete(tag)) 77 - ).sort().map(tag => `<span class="ltTag" style="cursor:pointer;">${tag}</span>`).join(", ") 82 + ).sort().map(tag => `<span class="ltTag" style="cursor:pointer;white-space:nowrap;">${tag}</span>`).join(", ") 78 78 ); 79 79 } 80 80 }); 81 81 87 + livetableRowHook.jobs = row => { 88 + const a = new Element("a", { href: row.link }); 89 + a.innerHTML = `<b class="wikiexternallink">${row.doc_title}</b>`; 90 + row.doc_title = a.outerHTML; 91 + 92 + row.doc_date = row.doc_date.split(" ")[0]; 93 + }; 94 + 82 82 })()); 83 83