This commit is contained in:
滔哥
2017-12-19 17:37:04 +08:00
2 changed files with 14 additions and 1 deletions

View File

@@ -613,7 +613,7 @@ class treeModel extends model
{
$childMenu = isset($treeMenu[0]) ? "<ul>{$treeMenu[0]}</ul>" : '';
$link = helper::createLink('project', 'story', "project=$rootID&ordery=&status=byBranch&praram=$branch");
$treeMenu[0] = "<li>" . html::a($link, $branchName, '_self', "id='branch$branch'") . "{$childMenu}</li>";
if($branchName) $treeMenu[0] = "<li>" . html::a($link, $branchName, '_self', "id='branch$branch'") . "{$childMenu}</li>";
}
$tree .= isset($treeMenu[0]) ? $treeMenu[0] : '';
}

View File

@@ -2042,4 +2042,17 @@ $(document).ready(function()
initHelpLink();
checkTutorial();
revertModuleCookie();
/* Adjust for dropdown position. */
$('li.dropdown-submenu').mouseover(function()
{
$('li.dropdown-submenu > .dropdown-menu').each(function()
{
if($(this).css('display') == 'block')
{
var topPosition = $(this).offset().top;
if(topPosition < 0) $(this).css('bottom', Number($(this).css('bottom').replace('px', '')) + topPosition);
}
})
})
});