alecpl
2011-10-19 7772ae2477c079af0e80ce5a91dde97139e3fb5a
- Another fix to hide empty tabs


1 files modified
8 ■■■■■ changed files
program/steps/addressbook/func.inc 8 ●●●●● patch | view | raw | blame | history
program/steps/addressbook/func.inc
@@ -657,9 +657,11 @@
                }
                // wrap rows in fieldgroup container
                $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')),
                  ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') .
                  $rows);
                if ($rows) {
                    $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')),
                      ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') .
                      $rows);
                }
            }
            if (!$content)