From: Sven Schöling Date: Mon, 17 Oct 2011 08:25:21 +0000 (+0200) Subject: Bei date_tag die Kalender Orientierung nicht als html Attribut ausgeben. X-Git-Tag: release-2.7.0beta1~215^2~19 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=b28312f7bc170a6f96368cdffcb48876326fcb97;p=kivitendo-erp.git Bei date_tag die Kalender Orientierung nicht als html Attribut ausgeben. --- diff --git a/SL/Template/Plugin/L.pm b/SL/Template/Plugin/L.pm index 320c75ed2..34a20f3f6 100644 --- a/SL/Template/Plugin/L.pm +++ b/SL/Template/Plugin/L.pm @@ -277,8 +277,7 @@ sub date_tag { s/y+/\%Y/gi; } $::myconfig{"dateformat"}; - $params{cal_align} ||= 'BR'; - + my $cal_align = delete $params{cal_align} || 'BR'; my $str_value = blessed $value ? $value->to_lxoffice : $value; $self->input_tag($name, $str_value, @@ -290,12 +289,13 @@ sub date_tag { ) . ((!$params{no_cal}) ? $self->html_tag('img', undef, src => 'image/calendar.png', + alt => $::locale->text('Calendar'), id => "trigger$seq", title => _H($::myconfig{dateformat}), %params, ) . $self->javascript( - "Calendar.setup({ inputField: '$name_e', ifFormat: '$datefmt', align: '$params{cal_align}', button: 'trigger$seq' });" + "Calendar.setup({ inputField: '$name_e', ifFormat: '$datefmt', align: '$cal_align', button: 'trigger$seq' });" ) : ''); }