From: Sven Schöling <s.schoeling@linet-services.de>
Date: Fri, 26 Oct 2012 11:27:13 +0000 (+0200)
Subject: fokus in Einkauf->Berichte->Rechnungen gefixt
X-Git-Tag: release-3.0.0beta1~88
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7c20384deae1f74f33b4ecbfd44f0cec85f21eee;p=kivitendo-erp.git

fokus in Einkauf->Berichte->Rechnungen gefixt
---

diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl
index e31f322b6..8c55a3d9c 100644
--- a/bin/mozilla/ap.pl
+++ b/bin/mozilla/ap.pl
@@ -1221,7 +1221,7 @@ sub search {
   $form->all_vc(\%myconfig, "vendor", "AP");
 
   $form->{title}    = $locale->text('AP Transactions');
-  $form->{fokus}    = "search.vendor";
+  $::request->{layout}->focus('#vendor');
   $form->{jsscript} = 1;
 
   $form->get_lists("projects"     => { "key" => "ALL_PROJECTS", "all" => 1 },
diff --git a/templates/webpages/ap/search.html b/templates/webpages/ap/search.html
index 0bb447b31..99898a6ea 100644
--- a/templates/webpages/ap/search.html
+++ b/templates/webpages/ap/search.html
@@ -13,6 +13,7 @@
       <th align=right>[% 'Vendor' | $T8 %]</th>
       <td colspan=3>
             [%- INCLUDE 'generic/multibox.html'
+                 id            = 'vendor',
                  name          = 'vendor',
                  default       = oldvendor,
                  style         = 'width: 250px',