From 787062c9172e3eca0756c21d9cc5652e44e5a643 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 26 Oct 2012 13:25:00 +0200 Subject: [PATCH] fokus in Einkaufsrechnungen gefixt --- bin/mozilla/ir.pl | 2 +- templates/webpages/ir/form_header.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/mozilla/ir.pl b/bin/mozilla/ir.pl index 8a8df0ba2..0a468615e 100644 --- a/bin/mozilla/ir.pl +++ b/bin/mozilla/ir.pl @@ -328,7 +328,7 @@ sub form_header { $TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update}; $TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/; - $form->{fokus} = "invoice.vendor"; + $::request->{layout}->focus('#vendor'); my $follow_up_vc = $form->{vendor}; $follow_up_vc =~ s/--\d*\s*$//; diff --git a/templates/webpages/ir/form_header.html b/templates/webpages/ir/form_header.html index d8c026e4a..4065b039e 100644 --- a/templates/webpages/ir/form_header.html +++ b/templates/webpages/ir/form_header.html @@ -33,6 +33,7 @@ [% 'Vendor' | $T8 %] [%- INCLUDE 'generic/multibox.html' + id = 'vendor', name = 'vendor', style = 'width: 250px', DATA = ALL_VENDORS, -- 2.20.1