From f5c4ca4957be652d0b01234ad8c5c07b4f91435a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 26 Oct 2012 14:18:20 +0200 Subject: [PATCH] fokus in Lagern und Preisfaktoren gefixt --- bin/mozilla/am.pl | 8 ++++---- templates/webpages/am/edit_price_factor.html | 2 +- templates/webpages/am/edit_warehouse.html | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index 1aca213e0..4e4f05321 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -1590,7 +1590,7 @@ sub add_price_factor { $form->{title} = $locale->text('Add Price Factor'); $form->{callback} ||= build_std_url('action=add_price_factor'); - $form->{fokus} = 'description'; + $::request->{layout}->focus('#description'); $form->header(); print $form->parse_html_template('am/edit_price_factor'); @@ -1609,7 +1609,7 @@ sub edit_price_factor { $form->{title} = $locale->text('Edit Price Factor'); $form->{callback} ||= build_std_url('action=add_price_factor'); - $form->{fokus} = 'description'; + $::request->{layout}->focus('#description'); AM->get_price_factor(\%myconfig, $form); @@ -1697,7 +1697,7 @@ sub add_warehouse { $form->{title} = $locale->text('Add Warehouse'); $form->{callback} ||= build_std_url('action=add_warehouse'); - $form->{fokus} = 'description'; + $::request->{layout}->focus('#description'); $form->header(); print $form->parse_html_template('am/edit_warehouse'); @@ -1720,7 +1720,7 @@ sub edit_warehouse { $form->{title} = $locale->text('Edit Warehouse'); $form->{callback} ||= build_std_url('action=list_warehouses'); - $form->{fokus} = 'description'; + $::request->{layout}->focus('#description'); $form->header(); print $form->parse_html_template('am/edit_warehouse'); diff --git a/templates/webpages/am/edit_price_factor.html b/templates/webpages/am/edit_price_factor.html index a46d2cb53..dc00c7c6c 100644 --- a/templates/webpages/am/edit_price_factor.html +++ b/templates/webpages/am/edit_price_factor.html @@ -11,7 +11,7 @@ - + diff --git a/templates/webpages/am/edit_warehouse.html b/templates/webpages/am/edit_warehouse.html index ba953df27..2208de527 100644 --- a/templates/webpages/am/edit_warehouse.html +++ b/templates/webpages/am/edit_warehouse.html @@ -17,7 +17,7 @@ -- 2.20.1
[% 'Description' | $T8 %]
[% 'Description' | $T8 %] - +