From: Moritz Bunkus Date: Fri, 1 Mar 2013 14:47:32 +0000 (+0100) Subject: Veralteten Code entfernen X-Git-Tag: release-3.1.0beta1~574 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=14d5612bd71957448bb5a6325cb8650d84e7dd54;p=kivitendo-erp.git Veralteten Code entfernen --- diff --git a/SL/Form.pm b/SL/Form.pm index e6b71d1fc..4d26c2552 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -757,51 +757,6 @@ sub show_generic_information { ::end_of_request(); } -# write Trigger JavaScript-Code ($qty = quantity of Triggers) -# changed it to accept an arbitrary number of triggers - sschoeling -sub write_trigger { - $main::lxdebug->enter_sub(); - - my $self = shift; - my $myconfig = shift; - my $qty = shift; - - # set dateform for jsscript - # default - my %dateformats = ( - "dd.mm.yy" => "%d.%m.%Y", - "dd/mm/yy" => "%d/%m/%Y", - "mm/dd/yy" => "%m/%d/%Y", - "yyyy-mm-dd" => "%Y-%m-%d", - ); - - my $ifFormat = defined($dateformats{$myconfig->{"dateformat"}}) ? - $dateformats{$myconfig->{"dateformat"}} : "%d.%m.%Y"; - - my @triggers; - while ($#_ >= 2) { - push @triggers, qq| - Calendar.setup( - { - inputField : "| . (shift) . qq|", - ifFormat :"$ifFormat", - align : "| . (shift) . qq|", - button : "| . (shift) . qq|" - } - ); - |; - } - my $jsscript = qq| - - |; - - $main::lxdebug->leave_sub(); - - return $jsscript; -} #end sub write_trigger - sub _store_redirect_info_in_session { my ($self) = @_;