Revision 005e30ca
Von Moritz Bunkus vor mehr als 11 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
221 | 221 |
|
222 | 222 |
_set_id_attribute(\%params, $name); |
223 | 223 |
my @onchange = $params{onchange} ? (onChange => delete $params{onchange}) : (); |
224 |
my @class = $params{no_cal} || $params{readonly} ? () : (class => 'datepicker'); |
|
224 |
my @classes = $params{no_cal} || $params{readonly} ? () : ('datepicker'); |
|
225 |
push @classes, delete($params{class}) if $params{class}; |
|
226 |
my %class = @classes ? (class => join(' ', @classes)) : (); |
|
225 | 227 |
|
226 | 228 |
return $self->input_tag( |
227 | 229 |
$name, blessed($value) ? $value->to_lxoffice : $value, |
228 | 230 |
size => 11, |
229 | 231 |
onblur => "check_right_date_format(this);", |
230 | 232 |
%params, |
231 |
@class, @onchange,
|
|
233 |
%class, @onchange,
|
|
232 | 234 |
); |
233 | 235 |
} |
234 | 236 |
|
Auch abrufbar als: Unified diff
L.date_tag: Möglichkeit, "class" zu setzen