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
515d80d6
Commit
515d80d6
authored
Jun 03, 2017
by
Carsten Rose
Browse files
3612 / Konflikt typeAheadLdap mit dynamic modesql: code cleanup 2.
parent
c351e171
Changes
1
Hide whitespace changes
Inline
Side-by-side
extension/qfq/qfq/AbstractBuildForm.php
View file @
515d80d6
...
...
@@ -505,7 +505,6 @@ abstract class AbstractBuildForm {
}
else
{
$json
[]
=
$jsonElement
;
}
// $json = $this->elementUpdateAttrClassOnRow($json, $formElement);
}
}
...
...
@@ -536,30 +535,6 @@ abstract class AbstractBuildForm {
return
$html
;
}
/**
* Add API_ELEMENT_UPDATE of the current FormElement for the attribute 'class' on the 'row'-div.
* Depending on $formElement[FE_MODE] set
* WRAP_SETUP_CLASS or
* WRAP_SETUP_CLASS . 'hidden'.
*
* @param array $json
* @param array $formElement
* @return array
*/
private
function
elementUpdateAttrClassOnRow
(
array
$json
,
array
$formElement
)
{
// Activate 'show' or 'hidden' on the current FormElement via JSON 'API_ELEMENT_UPDATE'
$class
=
$this
->
wrap
[
WRAP_SETUP_ELEMENT
][
WRAP_SETUP_CLASS
];
if
(
$formElement
[
FE_MODE
]
==
'hidden'
)
{
$class
.
=
' hidden'
;
}
$key
=
$formElement
[
FE_HTML_ID
]
.
HTML_ID_EXTENSION_ROW
;
$json
[][
API_ELEMENT_UPDATE
][
$key
][
API_ELEMENT_ATTRIBUTE
][
'class'
]
=
$class
;
return
$json
;
}
/**
* Checks if LDAP search is requested.
* Yes: prepare configuration and fire the query.
...
...
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