diff --git a/module/story/js/view.js b/module/story/js/view.js index 9a215855b9..aba699216b 100644 --- a/module/story/js/view.js +++ b/module/story/js/view.js @@ -1,5 +1,11 @@ $(function() { + if($('#navbar .nav>li[data-id=story] .dropdown-menu').length) + { + $("#navbar>ul>li[data-id='story']>ul>li[data-id!='" + storyType + "']").removeClass('active'); + $('#navbar .nav>li[data-id=story]>a').html($('.active [data-id=' + storyType + ']').text() + ''); + } + if(canCreate) { link = createLink('story', 'create', 'productID=' + productID + "&branch=" + branch + '&moduleID=' + moduleID); diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index 09f8e1fa85..861a3d606a 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -14,6 +14,7 @@ session->storyList ? $app->session->storyList : $this->createLink('product', 'browse', "productID=$story->product");?> +type);?>