From: Sven Schöling Date: Wed, 19 Sep 2012 13:57:57 +0000 (+0200) Subject: Aufrufe von focus() entfernt. X-Git-Tag: release-3.0.0beta1~156 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e14cb525c640cb15bb6b2dfb62ccebbe78cb45cd;p=kivitendo-erp.git Aufrufe von focus() entfernt. Diese Funktion ist die interne javascript focus Funktion, die ohne Argument garkeinen Sinn macht. Die Lx-Office Version heisst fokus. --- diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index 1e6c6780f..2e82596cf 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -219,7 +219,6 @@ sub form_header { my ($title, $readonly, $exchangerate, $rows); my ($notes, $department, $customer, $employee, $amount, $project); - my ($onload); my ($ARselected); @@ -326,8 +325,6 @@ sub form_header { qq|| . qq||; - $onload = qq|focus()|; - # $amount = $locale->text('Amount'); # $project = $locale->text('Project'); @@ -442,7 +439,6 @@ sub form_header { project_labels => \%project_labels, rows => $rows, ARselected => $ARselected, - onload => $onload, title_str => $title, follow_up_trans_info => $follow_up_trans_info, }); @@ -905,7 +901,7 @@ sub search { my $cgi = $::request->{cgi}; my ($customer, $department); - my ($jsscript, $button1, $button2, $onload); + my ($jsscript, $button1, $button2); # setup customer selection $form->all_vc(\%myconfig, "customer", "AR"); diff --git a/bin/mozilla/ca.pl b/bin/mozilla/ca.pl index b22ed29cd..4cababbe6 100644 --- a/bin/mozilla/ca.pl +++ b/bin/mozilla/ca.pl @@ -154,11 +154,8 @@ sub list { $::form->{title} = $::locale->text('List Transactions') . " - " . $::locale->text('Account') . " $::form->{accno}"; - my $onload = qq|focus()|; - $::form->header; print $::form->parse_html_template('ca/list', { - onload => $onload, year => DateTime->today->year, cash => $::instance_conf->get_accounting_method eq 'cash', }); diff --git a/bin/mozilla/cp.pl b/bin/mozilla/cp.pl index 7825ed639..5fbf7c0a2 100644 --- a/bin/mozilla/cp.pl +++ b/bin/mozilla/cp.pl @@ -132,7 +132,6 @@ sub form_header { $auth->assert('cash'); my ($vc, $arap, $exchangerate); - my ($onload); if ($form->{ $form->{vc} } eq "") { map { $form->{"addr$_"} = "" } (1 .. 4); @@ -167,12 +166,10 @@ sub form_header { $form->header; $arap = lc $form->{ARAP}; - $onload = qq|focus()|; print $::form->parse_html_template('cp/form_header', { is_customer => $form->{vc} eq 'customer', is_receipt => $form->{type} eq 'receipt', - onload => $onload, arap => $arap, vccontent => $vc, }); diff --git a/bin/mozilla/dn.pl b/bin/mozilla/dn.pl index 3a8f9fbc9..90d56070d 100644 --- a/bin/mozilla/dn.pl +++ b/bin/mozilla/dn.pl @@ -316,8 +316,6 @@ sub search { $form->header(); - $form->{onload} = qq|focus()|; - print $form->parse_html_template("dunning/search"); $main::lxdebug->leave_sub(); diff --git a/bin/mozilla/gl.pl b/bin/mozilla/gl.pl index d54dc705f..fd67b5f4c 100644 --- a/bin/mozilla/gl.pl +++ b/bin/mozilla/gl.pl @@ -220,11 +220,8 @@ sub search { ); $::form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]); - my $onload = "focus()"; - $::form->header; print $::form->parse_html_template('gl/search', { - onload => $onload, department_label => sub { ("$_[0]{description}--$_[0]{id}")x2 }, employee_label => sub { "$_[0]{id}--$_[0]{name}" }, }); diff --git a/bin/mozilla/rp.pl b/bin/mozilla/rp.pl index a339cd41a..1068da749 100644 --- a/bin/mozilla/rp.pl +++ b/bin/mozilla/rp.pl @@ -151,8 +151,6 @@ sub report { $::form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }); - my $onload = qq|focus()|; - my $is_projects = $::form->{report} eq "projects"; my $is_income_statement = $::form->{report} eq "income_statement"; my $is_bwa = $::form->{report} eq "bwa"; @@ -198,7 +196,6 @@ sub report { vc => $vc, label => $label, year => DateTime->today->year, - onload => $onload, nextsub => $nextsub, accrual => $::instance_conf->get_accounting_method ne 'cash', cash => $::instance_conf->get_accounting_method eq 'cash', diff --git a/bin/mozilla/wh.pl b/bin/mozilla/wh.pl index c77d74dde..fee9ff9d1 100644 --- a/bin/mozilla/wh.pl +++ b/bin/mozilla/wh.pl @@ -795,7 +795,6 @@ sub report { $form->{jsscript} = 1; # $form->{fokus} = "partnumber"; -# $form->{onload} .= "focus();"; $form->{title} = $locale->text("Report about warehouse contents"); $form->header(); diff --git a/templates/webpages/ap/search.html b/templates/webpages/ap/search.html index 91ebc325d..0bb447b31 100644 --- a/templates/webpages/ap/search.html +++ b/templates/webpages/ap/search.html @@ -171,10 +171,3 @@
- diff --git a/templates/webpages/gl/form_header.html b/templates/webpages/gl/form_header.html index e6ba49e19..448b8a33f 100644 --- a/templates/webpages/gl/form_header.html +++ b/templates/webpages/gl/form_header.html @@ -2,8 +2,6 @@ [%- USE LxERP %] [%- USE T8 %] [%- USE L %] - -