From 68911c8d4532bdf230b95557138fd47cda9c04bd Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Sun, 11 Oct 2020 21:15:24 +0200 Subject: [PATCH] js/docs.js: remove temporary hack for side menu Looks like everything works without this Signed-off-by: Sebastiaan van Stijn --- js/docs.js | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/js/docs.js b/js/docs.js index 07cdd22502..84165b09e0 100644 --- a/js/docs.js +++ b/js/docs.js @@ -186,11 +186,8 @@ if (selectedNightTheme === "true" || (selectedNightTheme === null && prefersDark $("#switch-style").prop("checked", false); } - /* - * * toggle menu ********************************************************************* - * */ $("#menu-toggle").click(function (e) { @@ -268,11 +265,8 @@ $(document).ready(function () { }); }); - /* - * * make dropdown show on hover ********************************************************************* - * */ $("ul.nav li.dropdown").hover(function () { @@ -282,9 +276,7 @@ $("ul.nav li.dropdown").hover(function () { }); /* - * * swapStyleSheet********************************************************************* - * */ function applyNight() { @@ -305,27 +297,8 @@ $("#switch-style").change(function () { } }); - /* - * - * TEMP HACK For side menu********************************************************************* - * - */ - -$(".nav-sidebar ul li a").click(function () { - $(this).addClass("collapse").siblings().toggleClass("in"); -}); - -if ($(".nav-sidebar ul a.active").length !== 0) { - $(".nav-sidebar ul").click(function () { - $(this).addClass("collapse in").siblings; - }); -} - -/* - * * Components ********************************************************************* - * */ $(function () {