Commit a5506bbd authored by Carsten  Rose's avatar Carsten Rose
Browse files

BuildFormBootstrap: fixed bug in wrapping of 'more' button.

parent 070368ce
...@@ -114,7 +114,7 @@ class BuildFormBootstrap extends AbstractBuildForm { ...@@ -114,7 +114,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
* @throws UserException * @throws UserException
*/ */
private function buildPillNavigation($pillArray) { private function buildPillNavigation($pillArray) {
$html = ''; $htmlDropdown = '';
$pillButton = ''; $pillButton = '';
$pillDropdown = ''; $pillDropdown = '';
...@@ -147,14 +147,15 @@ class BuildFormBootstrap extends AbstractBuildForm { ...@@ -147,14 +147,15 @@ class BuildFormBootstrap extends AbstractBuildForm {
// Pill Dropdown necessary? // Pill Dropdown necessary?
if ($ii > $maxVisiblePill) { if ($ii > $maxVisiblePill) {
$html = Support::wrapTag('<ul class="dropdown-menu">', $pillDropdown, true); $htmlDropdown = Support::wrapTag('<ul class="dropdown-menu">', $pillDropdown, true);
$html .= '<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">more <span class="caret"></span></a>'; $htmlDropdown = '<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button">more <span class="caret"></span></a>' . $htmlDropdown;
$htmlDropdown = Support::wrapTag('<li role="presentation" class="dropdown">', $htmlDropdown,false);
} }
$html = Support::wrapTag('<ul id="' . $this->getTabId() . '" class="nav nav-pills" role="tablist">', $pillButton . $html); $htmlDropdown = Support::wrapTag('<ul id="' . $this->getTabId() . '" class="nav nav-pills" role="tablist">', $pillButton . $htmlDropdown);
$html = Support::wrapTag('<div class="col-md-9">', $html); $htmlDropdown = Support::wrapTag('<div class="col-md-9">', $htmlDropdown);
return $html; return $htmlDropdown;
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment