From f62cbc279222b9ec05f5f4219429536cdc31ecba Mon Sep 17 00:00:00 2001 From: qiyu-xie Date: Thu, 29 Jul 2021 16:16:55 +0800 Subject: [PATCH] * Modify the problem of navigation highlight at showfiles page. --- module/doc/js/showfiles.js | 5 +++++ module/doc/view/showfiles.html.php | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 module/doc/js/showfiles.js diff --git a/module/doc/js/showfiles.js b/module/doc/js/showfiles.js new file mode 100644 index 0000000000..4923c784f4 --- /dev/null +++ b/module/doc/js/showfiles.js @@ -0,0 +1,5 @@ +$(function() +{ + $('#navbar .nav li').removeClass('active'); + $("#navbar .nav li[data-id=" + type + ']').addClass('active'); +}); diff --git a/module/doc/view/showfiles.html.php b/module/doc/view/showfiles.html.php index 367d8413e3..cf18914db6 100644 --- a/module/doc/view/showfiles.html.php +++ b/module/doc/view/showfiles.html.php @@ -117,8 +117,7 @@ - - +