aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-10-02 20:08:04 +0000
committerMario <mario@mariovavti.com>2024-10-02 20:08:04 +0000
commit64bd8eef4b1e08d0521f91f9b2cdb7369e946521 (patch)
treeeea2717c224fdc1c724a13deab40d0f965df1355 /view/tpl
parentaa42f6a6b28a7e91d3a1216eaf88d086930db264 (diff)
downloadvolse-hubzilla-64bd8eef4b1e08d0521f91f9b2cdb7369e946521.tar.gz
volse-hubzilla-64bd8eef4b1e08d0521f91f9b2cdb7369e946521.tar.bz2
volse-hubzilla-64bd8eef4b1e08d0521f91f9b2cdb7369e946521.zip
Use html details element for toc on top of help pages.
This allows us to get rid of some more unneccessary JavaScript that just implements stuff that web browsers now do anyways. (cherry picked from commit 26ce231951e62f1912d457c8f6e6b0f2092173f1) Co-authored-by: Harald Eilertsen <haraldei@anduin.net>
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/help.tpl11
1 files changed, 4 insertions, 7 deletions
diff --git a/view/tpl/help.tpl b/view/tpl/help.tpl
index ce3f46fdb..8b7669c75 100644
--- a/view/tpl/help.tpl
+++ b/view/tpl/help.tpl
@@ -8,13 +8,10 @@
</div>
{{/if}}
<div class="section-content-wrapper">
- <h3 id="doco-top-toc-heading">
- <span class="fakelink" onclick="docoTocToggle(); return false;">
- <i class="bi bi-caret-right fakelink" id="doco-toc-toggle"></i>
- {{$module->get_toc_heading()}}
- </span>
- </h3>
- <ul id="doco-top-toc" style="margin-bottom: 1.5em; display: none;"></ul>
+ <details id="doco-top-toc-wrapper">
+ <summary id="doco-top-toc-heading">{{$module->get_toc_heading()}}</summary>
+ <ul id="doco-top-toc"></ul>
+ </details>
<div id="doco-content">
{{$module->render_content()}}
</div>