luci-theme-material: fix wrong active state on common prefix node
authorLiangbin Lian <jjm2473@gmail.com>
Wed, 21 Apr 2021 10:00:48 +0000 (18:00 +0800)
committerHannu Nyman <hannu.nyman@iki.fi>
Wed, 26 May 2021 07:09:05 +0000 (10:09 +0300)
commitac0bcc2d10d75879e7c15207bf9ad935275ba216
tree6e43c23f7c38ac0ae81a32b32584204b0ec43882
parent19de3acddec1fa63cd895b3e0aa41fa0cae0ee88
luci-theme-material: fix wrong active state on common prefix node

Before fixed, if we have two nodes: 'services/ddns' and 'services/ddnsto',
click any one of they, will show they all actived.

Signed-off-by: Liangbin Lian <jjm2473@gmail.com>
(cherry picked from commit 97d50d2c6b80805cd7e513eeafc8b62fef4ab1b6)
themes/luci-theme-material/htdocs/luci-static/material/js/script.js