Commit 515d80d6 authored by Carsten  Rose's avatar Carsten Rose
Browse files

3612 / Konflikt typeAheadLdap mit dynamic modesql: code cleanup 2.

parent c351e171
......@@ -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.
......
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