Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Fix #current styling for elements with same name #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion brand/ohthejoy/footer.html.in
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ $(function() {
$("#sidebar li>div").removeClass("current");
currSectionIdx = sectionIdx;
if (currSectionIdx >= 0) {
var heading = $(sections[currSectionIdx]).text();
var heading = $(sections[currSectionIdx]).attr('id');
var possibleAnchors = [
slugify(heading), // h1 or non-method h2
heading.replace(/ /g, '-'), // h2 method, just name or just endpoint
Expand Down