Changeset 5350 in subversion


Ignore:
Timestamp:
Oct 19, 2011 7:35:49 AM (19 months ago)
Author:
alec
Message:
  • Another fix to hide empty tabs
File:
1 edited

Legend:

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

    r5346 r5350  
    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.