X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/428bc36564ef6e0030fdac1052a2e87c7a2cf11e..0c404f20f1f066a1e6fc9c4bacf4bd70eec719e4:/bin/mozilla/ct.pl diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index d3e09dc73..0e91cc936 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -101,9 +101,7 @@ sub search { 'include_prefix' => 'l_', 'include_value' => 'Y'); - $form->{jsscript} = 1; $form->{title} = $form->{IS_CUSTOMER} ? $locale->text('Customers') : $locale->text('Vendors'); - $::request->{layout}->focus('#name'); $form->header(); print $form->parse_html_template('ct/search'); @@ -174,7 +172,7 @@ sub list_names { my @columns = ( 'id', 'name', "$form->{db}number", 'contact', 'phone', 'fax', 'email', 'taxnumber', 'street', 'zipcode' , 'city', - 'business', 'invnumber', 'ordnumber', 'quonumber', 'salesman', 'country' + 'business', 'invnumber', 'ordnumber', 'quonumber', 'salesman', 'country' ); my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs }; @@ -344,7 +342,7 @@ sub list_contacts { 'cp_gender' => { 'text' => $::locale->text('Gender'), }, 'cp_fax' => { 'text' => $::locale->text('Fax'), }, 'cp_privatphone' => { 'text' => $::locale->text('Private Phone') }, - 'cp_privatemail' => { 'text' => $::locale->text('Private E-Mail') }, + 'cp_privatemail' => { 'text' => $::locale->text('Private E-mail') }, %column_defs_cvars, ); @@ -475,9 +473,7 @@ sub form_header { $form->{shipto_label} = \&_shipto_label; $form->{contacts_label} = \&_contacts_label; $form->{taxzone_id} = 0 if !$form->{id}; - $form->{jsscript} = 1; $form->{SHIPTO_ALL} = [ +{ shipto_id => '0', shiptoname => $::locale->text('All') }, @{ $form->{SHIPTO} } ]; - $::request->{layout}->focus("#greeting"); $form->{title} = $form->{title_save} || $locale->text("$form->{title} " . ucfirst $form->{db}) . ($form->{title} eq "Edit" ? " $form->{name}" : '');