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 {
* @throws UserException
*/
private function buildPillNavigation($pillArray) {
$html = '';
$htmlDropdown = '';
$pillButton = '';
$pillDropdown = '';
......@@ -147,14 +147,15 @@ class BuildFormBootstrap extends AbstractBuildForm {
// Pill Dropdown necessary?
if ($ii > $maxVisiblePill) {
$html = 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 = Support::wrapTag('<ul class="dropdown-menu">', $pillDropdown, true);
$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);
$html = Support::wrapTag('<div class="col-md-9">', $html);
$htmlDropdown = Support::wrapTag('<ul id="' . $this->getTabId() . '" class="nav nav-pills" role="tablist">', $pillButton . $htmlDropdown);
$htmlDropdown = Support::wrapTag('<div class="col-md-9">', $htmlDropdown);
return $html;
return $htmlDropdown;
}
/**
......
Supports Markdown
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