From 14d5612bd71957448bb5a6325cb8650d84e7dd54 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 1 Mar 2013 15:47:32 +0100 Subject: [PATCH] Veralteten Code entfernen --- SL/Form.pm | 45 --------------------------------------------- 1 file changed, 45 deletions(-) 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) = @_; -- 2.20.1