Changeset 7772ae2 in github


Ignore:
Timestamp:
Oct 19, 2011 7:35:49 AM (20 months ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
Children:
f09c1847, de1a3f4
Parents:
c041d57
Message:
  • Another fix to hide empty tabs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/steps/addressbook/func.inc

    r01169b6 r7772ae2  
    658658 
    659659                // wrap rows in fieldgroup container 
    660                 $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')), 
    661                   ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') . 
    662                   $rows); 
     660                if ($rows) { 
     661                    $content .= html::tag('fieldset', array('class' => 'contactfieldgroup ' . ($colprop['subtypes'] ? 'contactfieldgroupmulti ' : '') . 'contactcontroller' . $col, 'style' => ($rows ? null : 'display:none')), 
     662                      ($colprop['subtypes'] ? html::tag('legend', null, Q($colprop['label'])) : ' ') . 
     663                      $rows); 
     664                } 
    663665            } 
    664666 
Note: See TracChangeset for help on using the changeset viewer.