changed parseHTML() to be scope independent

This commit is contained in:
Roland Gruber 2009-02-14 13:32:34 +00:00
parent 656205e4ff
commit 394471f7aa
1 changed files with 5 additions and 1 deletions

View File

@ -767,7 +767,11 @@ function parseHtml($module, $input, $values, $restricted, &$tabindex, $scope) {
break; break;
// inner fieldset // inner fieldset
case 'fieldset': case 'fieldset':
echo "<fieldset class=\"" . $scope . "edit\">\n"; $styleClass = '';
if (isset($scope) && ($scope != '')) {
$styleClass = ' class="' . $scope . 'edit"';
}
echo "<fieldset" . $styleClass . ">\n";
if ($input[$i][$j]['legend']!='') echo "<legend>" . $input[$i][$j]['legend'] . "</legend>\n"; if ($input[$i][$j]['legend']!='') echo "<legend>" . $input[$i][$j]['legend'] . "</legend>\n";
$retTemp = parseHtml($module, $input[$i][$j]['value'], $values, $restricted, $tabindex, $scope); $retTemp = parseHtml($module, $input[$i][$j]['value'], $values, $restricted, $tabindex, $scope);
$ret = array_merge($ret, $retTemp); $ret = array_merge($ret, $retTemp);