From: Sven Schöling <s.schoeling@linet-services.de>
Date: Fri, 26 Oct 2012 12:23:03 +0000 (+0200)
Subject: fokus in email gefixt
X-Git-Tag: release-3.0.0beta1~78
X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=6ec6dac55f2edee6a52ec0d5a61cabab674256c8;p=kivitendo-erp.git

fokus in email gefixt
---

diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl
index 74b4e6591..b518db00e 100644
--- a/bin/mozilla/io.pl
+++ b/bin/mozilla/io.pl
@@ -978,7 +978,7 @@ sub edit_e_mail {
   my $attachment_filename = $form->generate_attachment_filename();
   my $subject             = $form->{subject} || $form->generate_email_subject();
 
-  $form->{"fokus"} = $form->{"email"} ? "Form.subject" : "Form.email";
+  $::request->{layout}->focus($form->{"email"} ? "#subject" : "#email");
   $form->header;
 
   my (@dont_hide_key_list, %dont_hide_key, @hidden_keys);
diff --git a/templates/webpages/generic/edit_email.html b/templates/webpages/generic/edit_email.html
index e528c78fa..b8303a0cc 100644
--- a/templates/webpages/generic/edit_email.html
+++ b/templates/webpages/generic/edit_email.html
@@ -14,7 +14,7 @@
         <tr>
           <th align="right" nowrap>[% 'To' | $T8 %]</th>
 
-          <td><input name="email" size="30" value="[% HTML.escape(email) %]"></td>
+          <td><input id="email" name="email" size="30" value="[% HTML.escape(email) %]"></td>
         </tr>
         <tr>
           <th align="right" nowrap>[% 'Cc' | $T8 %]</th>
@@ -28,7 +28,7 @@
         <tr>
           <th align="right" nowrap>[% 'Subject' | $T8 %]</th>
 
-          <td><input name="subject" size="30" value="[% HTML.escape(subject) %]"></td>
+          <td><input id="subject" name="subject" size="30" value="[% HTML.escape(subject) %]"></td>
         </tr>
         <tr>
           <th align="right" nowrap>[% 'Attachment name' | $T8 %]</th>