From: Moritz Bunkus Date: Tue, 16 Mar 2010 08:42:16 +0000 (+0100) Subject: Fokus via jQuery setzen. X-Git-Tag: release-2.6.1~12^2^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=5f4f93b36e5cac5cba49224bde12284034b44f49;p=kivitendo-erp.git Fokus via jQuery setzen. Funktioniert damit auch im Internet Explorer. Rest des Fixes für Bug 1374. --- 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'); })