Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
870cd188
Commit
870cd188
authored
Sep 05, 2018
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/BuildFormBootstrap.php
View file @
870cd188
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment