fokus in Einkaufsrechnungen gefixt
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 26 Oct 2012 11:25:00 +0000 (13:25 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 26 Oct 2012 11:25:00 +0000 (13:25 +0200)
bin/mozilla/ir.pl
templates/webpages/ir/form_header.html

index 8a8df0b..0a46861 100644 (file)
@@ -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*$//;
index d8c026e..4065b03 100644 (file)
@@ -33,6 +33,7 @@
           <th align="right">[% 'Vendor' | $T8 %]</th>
           <td>
             [%- INCLUDE 'generic/multibox.html'
+                 id            = 'vendor',
                  name          = 'vendor',
                  style         = 'width: 250px',
                  DATA          = ALL_VENDORS,