From 64bd8eef4b1e08d0521f91f9b2cdb7369e946521 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 2 Oct 2024 20:08:04 +0000 Subject: 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 --- view/js/mod_help.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'view/js') diff --git a/view/js/mod_help.js b/view/js/mod_help.js index abd0d1194..8308f23ec 100644 --- a/view/js/mod_help.js +++ b/view/js/mod_help.js @@ -1,14 +1,3 @@ -function docoTocToggle() { - if ($('#doco-top-toc').is(':visible')) { - $('#doco-toc-toggle').removeClass('bi-gear').addClass('bi-caret-right'); - } else { - $('#doco-toc-toggle').removeClass('bi-caret-right').addClass('bi-caret-down'); - } - $('#doco-top-toc').toggle(); - - return false; -} - toc = {}; // Generate the table of contents in the side nav menu (see view/tpl/help.tpl) $(document).ready(function () { -- cgit v1.2.3