Debian Codegraph @

debian/patches/sidebar-event-handler.patch

raw
1 From: James Addison <[email protected]>
2 Date: Sat, 18 Jan 2025 20:34:48 +0300
3 Subject: Attach sidebar-close handler to current-page links
4
5 Bug-Debian: http://bugs.debian.org/1075914
6 Forwarded: https://github.com/readthedocs/sphinx_rtd_theme/pull/1588
7 ---
8 src/theme.js | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 diff --git a/src/theme.js b/src/theme.js
12 index db546b4..106c7a0 100644
13 --- a/src/theme.js
14 +++ b/src/theme.js
15 @@ -86,7 +86,7 @@ function ThemeNav () {
16 })
17
18 // Nav menu link click operations
19 - .on('click', ".wy-menu-vertical .current ul li a", function() {
20 + .on('click', ".wy-menu-vertical ul li a[href^='#']", function() {
21 var target = $(this);
22 // Close menu when you click a link.
23 $("[data-toggle='wy-nav-shift']").removeClass("shift");