Revision f28b428a
Von Thomas Heck vor fast 12 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
111 | 111 |
my $title_sub = delete($attributes{title_sub}); |
112 | 112 |
my $default_sub = delete($attributes{default_sub}); |
113 | 113 |
|
114 |
my $with_empty = delete($attributes{with_empty}); |
|
115 |
my $empty_title = delete($attributes{empty_title}); |
|
114 | 116 |
|
115 | 117 |
my %selected; |
116 | 118 |
|
... | ... | |
128 | 130 |
|
129 | 131 |
my @options; |
130 | 132 |
|
131 |
if ( delete($attributes{with_empty}) ) {
|
|
132 |
push(@options, [undef, $attributes{empty_title} || '']);
|
|
133 |
if ( $with_empty ) {
|
|
134 |
push(@options, [undef, $empty_title || '']);
|
|
133 | 135 |
} |
134 | 136 |
|
135 | 137 |
my $normalize_entry = sub { |
Auch abrufbar als: Unified diff
Parameter "empty_label" von L.select_tag nicht als HTML-Attribut ausgeben.