From 4b85e0abf6e356485d8b99fd3a6ba62e13d1ebef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 26 Oct 2012 13:51:50 +0200 Subject: [PATCH] fokus beim Editieren von Templates gefixt --- bin/mozilla/amtemplates.pl | 2 +- templates/webpages/am/edit_templates.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/amtemplates.pl b/bin/mozilla/amtemplates.pl index 4bc6f017b..9f21e22c7 100644 --- a/bin/mozilla/amtemplates.pl +++ b/bin/mozilla/amtemplates.pl @@ -272,7 +272,7 @@ sub display_template_form { $options{"CAN_EDIT"} = $form->{"edit"}; if ($form->{edit}) { - $form->{fokus} = "Form.content"; + $::request->{layout}->focus("#edit_content"); } else { $options{"content"} = "\n\n" if (!$options{"content"}); diff --git a/templates/webpages/am/edit_templates.html b/templates/webpages/am/edit_templates.html index 4c49e7066..220b9ecb6 100644 --- a/templates/webpages/am/edit_templates.html +++ b/templates/webpages/am/edit_templates.html @@ -53,7 +53,7 @@

[% IF CAN_EDIT %] -

+

-- 2.20.1