"""
+
def genPagePartFooter(self, lang) -> str:
_ = lang.gettext
@@ -534,15 +545,7 @@ class BServer:
-
-
-
-
-
-
+{self.genPagePartHeader(lang)}
"""]
for nr, group in enumerate(self.groups):
result.append(f"
{_(group.title)}
\n")
@@ -554,9 +557,9 @@ class BServer:
alt = f"{_(name)}"
href = f"{name}{langparam}"
if not os.path.exists(static_filename):
- result.append(f"""
{_(name)}
{_(box.__doc__)}\n""")
+ result.append(f"""
{_(name)}
{_(box.__doc__)}\n""")
else:
- result.append(f"""
\n""")
+ result.append(f"""
\n""")
result.append(f"""
{self.genPagePartFooter(lang)}
diff --git a/static/self.js b/static/self.js
index 30719ab..06af0f6 100644
--- a/static/self.js
+++ b/static/self.js
@@ -274,7 +274,7 @@ function expandAll() {
function showAll(str) {
let matching_ids = document.querySelectorAll('[id^="search_id_"]')
for (let id of matching_ids) {
- id.hidden = false;
+ id.style.display = "inline-block";
}
}
@@ -283,10 +283,11 @@ function showOnly(str) {
let matching_ids = document.querySelectorAll('[id^="search_id_"]')
for (let id of matching_ids) {
name = id.id.replace("search_id_", "").toLowerCase();
- if (name.includes(str) || id.textContent.toLowerCase().includes(str))
- id.hidden = false;
- else
- id.hidden = true;
+ if (name.includes(str) || id.textContent.toLowerCase().includes(str)) {
+ id.style.display = "inline-block";
+ } else {
+ id.style.display = "none";
+ }
}
}