Changes for page Helpers

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

From version 1.11
edited by Benjamin Fischer
on 2025/05/15 16:40
Change comment: There is no comment for this version
To version 1.14
edited by Benjamin Fischer
on 2025/05/15 16:47
Change comment: There is no comment for this version

Summary

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 => {
... ... @@ -74,7 +74,7 @@
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   });
... ... @@ -83,6 +83,8 @@
83 83   const a = new Element("a", { href: row.link });
84 84   a.innerHTML = `<b class="wikiexternallink">${row.doc_title}</b>`;
85 85   row.doc_title = a.outerHTML;
91 +
92 + row.doc_date = row.doc_date.split(" ")[0];
86 86   };
87 87  
88 88  })());