Skip to content

Nav-Expand/Collapse also enters chapter #234

@Zabuzard

Description

@Zabuzard

Clicking on the expand/collapse button > in the navigation will also enter the chapter. This is confusing and should be changed to only expand/collapse the chapter but not change sites.

example

This is due to js/extra.js line 12 spawning a click event when clicking anywhere on $("li.chapter-item"). This is done to allow users to not only click on the text/name of a chapter but also on the empty room next to it.

Essentially, what we want is that the first 2 of the following areas will enter a chapter, but the last area not:

areas

Bit tricky though, given that the underlying HTML structure doesnt really expose such a structure but instead has the expand/collapse button contained in the empty area:

html

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions