Changeset 1398


Ignore:
Timestamp:
08/21/15 16:33:24 (9 years ago)
Author:
nanardon
Message:

Kill empty line on multiple valued attributes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrFormsA.pm

    r1397 r1398  
    135135    } 
    136136 
     137    my $addempty = ''; 
    137138    if ($self->{multiple} && !$self->readonly) { 
    138139 
     
    142143        $code =~ s/'/\\'/g; 
    143144 
    144         my $addempty = sprintf('<div id="%s_div"></div>', $self->htmlid); 
     145        $addempty = sprintf('<div id="%s_div"></div>', $self->htmlid); 
    145146        $addempty .= "\n"; 
    146147        $addempty .= sprintf(q| 
     
    169170 
    170171        $addempty .= "\n"; 
    171         push( @htmls, $addempty); 
    172  
    173     } 
    174  
    175     return join("<br>\n", @htmls); 
     172 
     173    } 
     174 
     175    return join("<br>\n", @htmls) . $addempty; 
    176176} 
    177177 
Note: See TracChangeset for help on using the changeset viewer.