From 5f4f93b36e5cac5cba49224bde12284034b44f49 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 16 Mar 2010 09:42:16 +0100 Subject: [PATCH] Fokus via jQuery setzen. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Funktioniert damit auch im Internet Explorer. Rest des Fixes für Bug 1374. --- bin/mozilla/ar.pl | 1 - templates/webpages/ar/search_de.html | 2 +- templates/webpages/ar/search_master.html | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/ar.pl b/bin/mozilla/ar.pl index f170407d8..3d6704262 100644 --- a/bin/mozilla/ar.pl +++ b/bin/mozilla/ar.pl @@ -1268,7 +1268,6 @@ sub search { $form->all_vc(\%myconfig, "customer", "AR"); $form->{title} = $locale->text('AR Transactions'); - $form->{fokus} = "search.customer"; $form->{jsscript} = 1; $form->get_lists("projects" => { "key" => "ALL_PROJECTS", "all" => 1 }, diff --git a/templates/webpages/ar/search_de.html b/templates/webpages/ar/search_de.html index 185c651d5..b90aa3bc4 100644 --- a/templates/webpages/ar/search_de.html +++ b/templates/webpages/ar/search_de.html @@ -193,7 +193,7 @@ Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" }); Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" }); $(document).ready(function(){ - focus(); + $('customer').focus(); setupDateFormat('[% dateformat | html %]','Falsches Datumsformat!'); setupPoints('[% numberformat | html %]','Falsches Format'); }) diff --git a/templates/webpages/ar/search_master.html b/templates/webpages/ar/search_master.html index 09872cf99..7b1342580 100644 --- a/templates/webpages/ar/search_master.html +++ b/templates/webpages/ar/search_master.html @@ -193,7 +193,7 @@ Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" }); Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" }); $(document).ready(function(){ - focus(); + $('customer').focus(); setupDateFormat('[% dateformat | html %]','Falsches Datumsformat!'); setupPoints('[% numberformat | html %]','wrongformat'); }) -- 2.20.1