From 599c7986504df484331a51be4dbf2b5cd7cff93c Mon Sep 17 00:00:00 2001 From: liuruogu Date: Sun, 9 Oct 2022 02:54:54 +0000 Subject: [PATCH] * Fix light for product. --- module/story/js/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/js/common.js b/module/story/js/common.js index 6bfdaee1f2..8ea4e3d455 100644 --- a/module/story/js/common.js +++ b/module/story/js/common.js @@ -7,7 +7,7 @@ $(function() if(typeof(execution) != 'undefined') rawModule = 'projectstory'; if(['project', 'projectstory'].indexOf(rawModule) === -1 && app != 'qa') { - if(app != 'my') $('#navbar .nav li[data-id!=story]').removeClass('active'); + if(app != 'my') $('#navbar .nav li[data-id!=' + storyType + ']').removeClass('active'); $("#navbar .nav li[data-id=" + storyType + ']').addClass('active'); $('#subNavbar li[data-id="' + storyType + '"]').addClass('active'); if($('#navbar .nav>li[data-id=story] .dropdown-menu').length) $('#navbar .nav>li[data-id=story]>a').html($('.active [data-id=' + storyType + ']').text() + '');