m-o-p / labsystem

The labsystem eLearning system for creating and managing hands-on courses.
GNU General Public License v3.0
15 stars 9 forks source link

Wrong highlighting of menu items #88

Closed erkenberg closed 7 years ago

erkenberg commented 7 years ago

When clicking a page element (e.g. p291) in a submenu in the menu on the left side of the page there is not only the p291 element highlighted but also p29 and p2 (when visible in the menu). Clicking on p29 only highlights p29 and p2, clicking on p2 only highlights p2.

Seems that some kind of prefix matching doesn't work perfectly here. See e.g.: bug_labsystem

In that example p291 is selected but also Also the case for c elements and i elements (seems to work for C elements).