diff --git a/module/design/view/ajaxgetdropmenu.html.php b/module/design/view/ajaxgetdropmenu.html.php index 592e42260b..19ebf15310 100644 --- a/module/design/view/ajaxgetdropmenu.html.php +++ b/module/design/view/ajaxgetdropmenu.html.php @@ -1,10 +1,11 @@ id == $productID) $currentProduct = $product; $selected = $product->id == $productID ? 'selected' : ''; $productName = $product->name; $linkHtml = sprintf($link, $product->id); @@ -61,4 +63,13 @@ foreach($products as $product)
- + diff --git a/module/doc/view/objectlibs.html.php b/module/doc/view/objectlibs.html.php index 26478698e9..0a62ccfc60 100644 --- a/module/doc/view/objectlibs.html.php +++ b/module/doc/view/objectlibs.html.php @@ -46,10 +46,7 @@ $('#pageNav .btn-group.angle-btn').click(function() if($(this).hasClass('opened')) return; $(this).addClass('opened'); - setTimeout(function() - { - scrollToSelected(); - }, 100); + scrollToSelected(); }) diff --git a/module/doc/view/tablecontents.html.php b/module/doc/view/tablecontents.html.php index 6442f4f00a..ac73086360 100644 --- a/module/doc/view/tablecontents.html.php +++ b/module/doc/view/tablecontents.html.php @@ -124,4 +124,13 @@ if(empty($type)) $type = 'product'; + diff --git a/module/execution/view/ajaxgetdropmenu.html.php b/module/execution/view/ajaxgetdropmenu.html.php index 553e3347b0..779e67a96b 100644 --- a/module/execution/view/ajaxgetdropmenu.html.php +++ b/module/execution/view/ajaxgetdropmenu.html.php @@ -31,6 +31,7 @@ $projectExecutions) if(isset($execution->type) and $execution->type == 'kanban' and !$isKanbanMethod) $executionLink = $kanbanLink; if(isset($execution->type) and $execution->type != 'kanban' and strpos(',kanban,cfd,', ",$method,") !== false) $executionLink = $taskLink; + if($execution->id == $executionID) $currentExecution = $execution; $selected = $execution->id == $executionID ? 'selected' : ''; if(!empty($execution->children)) { foreach($execution->children as $id) { + if($execution->id == $executionID) $currentExecution = $execution; $selected = $id == $executionID ? 'selected' : ''; if($execution->status != 'done' and $execution->status != 'closed' and ($execution->PM == $this->app->user->account or isset($execution->teams[$this->app->user->account]))) { @@ -180,10 +183,14 @@ $closedExecutionsHtml .= ''; -