Revision b28312f7
Von Sven Schöling vor etwa 13 Jahren hinzugefügt
SL/Template/Plugin/L.pm | ||
---|---|---|
277 | 277 |
s/y+/\%Y/gi; |
278 | 278 |
} $::myconfig{"dateformat"}; |
279 | 279 |
|
280 |
$params{cal_align} ||= 'BR'; |
|
281 |
|
|
280 |
my $cal_align = delete $params{cal_align} || 'BR'; |
|
282 | 281 |
my $str_value = blessed $value ? $value->to_lxoffice : $value; |
283 | 282 |
|
284 | 283 |
$self->input_tag($name, $str_value, |
... | ... | |
290 | 289 |
) . ((!$params{no_cal}) ? |
291 | 290 |
$self->html_tag('img', undef, |
292 | 291 |
src => 'image/calendar.png', |
292 |
alt => $::locale->text('Calendar'), |
|
293 | 293 |
id => "trigger$seq", |
294 | 294 |
title => _H($::myconfig{dateformat}), |
295 | 295 |
%params, |
296 | 296 |
) . |
297 | 297 |
$self->javascript( |
298 |
"Calendar.setup({ inputField: '$name_e', ifFormat: '$datefmt', align: '$params{cal_align}', button: 'trigger$seq' });"
|
|
298 |
"Calendar.setup({ inputField: '$name_e', ifFormat: '$datefmt', align: '$cal_align', button: 'trigger$seq' });"
|
|
299 | 299 |
) : ''); |
300 | 300 |
} |
301 | 301 |
|
Auch abrufbar als: Unified diff
Bei date_tag die Kalender Orientierung nicht als html Attribut ausgeben.