aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-07-24 15:32:16 +0200
committerHarald Eilertsen <haraldei@anduin.net>2024-09-29 14:00:45 +0200
commit26ce231951e62f1912d457c8f6e6b0f2092173f1 (patch)
tree264a775e559c113b3ea126e2ccc3e7394abd706a /view/tpl
parentfb9464437e68c13474409c969f934afe13768649 (diff)
downloadvolse-hubzilla-26ce231951e62f1912d457c8f6e6b0f2092173f1.tar.gz
volse-hubzilla-26ce231951e62f1912d457c8f6e6b0f2092173f1.tar.bz2
volse-hubzilla-26ce231951e62f1912d457c8f6e6b0f2092173f1.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.
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>