Commit 870cd188 authored by Elias Villiger's avatar Elias Villiger
Browse files

Bug #4838: Hide pill that is requested with hash link

parent 6bb9978d
Pipeline #830 passed with stage
in 1 minute and 46 seconds
......@@ -506,7 +506,7 @@ class BuildFormBootstrap extends AbstractBuildForm {
$json[$htmlFormElementName][API_ELEMENT_UPDATE][$htmlIdLiA][API_ELEMENT_CONTENT] = $formElement[FE_LABEL];
if ($isFirstPill && $formElement[FE_MODE] != FE_MODE_HIDDEN) {
$attributeLi .= ' class="active"';
$attributeLi .= 'class="active" ';
$isFirstPill = false;
}
......@@ -784,12 +784,14 @@ EOF;
$html .= Support::wrapTag('<div class="col-md-12 qfq-form-body ' . $this->formSpec[F_CLASS_BODY] . '">', $elementHtml);
if ($formElement[FE_MODE] != FE_MODE_HIDDEN) {
$active = $this->isFirstPill ? ' active' : '';
if ($formElement[FE_MODE] == FE_MODE_HIDDEN) {
$class = ' hidden';
} else {
$class = $this->isFirstPill ? 'active ' : '';
$this->isFirstPill = false;
}
$html = Support::wrapTag('<div role="tabpanel" class="tab-pane' . $active . '" id="' . $this->createAnker($formElement['id']) . '">', $html);
$html = Support::wrapTag('<div role="tabpanel" class="tab-pane ' . $class . '" id="' . $this->createAnker($formElement['id']) . '">', $html);
return $html;
......
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