From 95a9314a3ccbfcbcbebef1929577361c21c54cf0 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 5 Mar 2010 11:08:15 +0100 Subject: [PATCH] =?utf8?q?Bei=20Wechsel=20Ansprechpartner=20Drop-Down-Boxe?= =?utf8?q?n=20f=C3=BCr=20Titel/Abteilung=20zur=C3=BCcksetzen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für Bug 1311. --- bin/mozilla/ct.pl | 3 +-- templates/webpages/ct/form_header_de.html | 16 ++++++++++++---- templates/webpages/ct/form_header_master.html | 16 ++++++++++++---- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index 7fe6afa64..9488ec847 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -654,8 +654,7 @@ sub get_shipto { my %myconfig = %main::myconfig; CT->get_shipto(\%myconfig, \%$form); - print $form->ajax_response_header(), join '__pjx__', map $form->{"shipto$_"}, - qw(name department_1 department_2 street zipcode city country contact phone fax email used); + print $form->ajax_response_header(), join('__pjx__', map($form->{"shipto$_"}, qw(name department_1 department_2 street zipcode city country contact phone fax email used))); $main::lxdebug->leave_sub(); } diff --git a/templates/webpages/ct/form_header_de.html b/templates/webpages/ct/form_header_de.html index 2cf95adc9..42b36e5c2 100644 --- a/templates/webpages/ct/form_header_de.html +++ b/templates/webpages/ct/form_header_de.html @@ -363,7 +363,7 @@ name = 'cp_id', id = 'cp_id', DATA = CONTACTS, - onChange = "get_contact(['cp_id__'+this.value],['cp_name','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2','cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact,set_gender])", + onChange = "on_contact_changed()", id_key = 'cp_id', label_sub = 'contacts_label', -%] @@ -387,6 +387,7 @@   [%- INCLUDE generic/multibox.html name = 'selected_cp_title', + id = 'selected_cp_title', DATA = MB_TITLES, show_empty = 1, id_key = 'id', @@ -401,6 +402,7 @@   [%- INCLUDE generic/multibox.html name = 'selected_cp_abteilung', + id = 'selected_cp_abteilung', DATA = MB_DEPARTMENT, show_empty = 1, id_key = 'id', @@ -633,6 +635,7 @@ + - - - diff --git a/templates/webpages/ct/form_header_master.html b/templates/webpages/ct/form_header_master.html index 4c2db99d3..1908225aa 100644 --- a/templates/webpages/ct/form_header_master.html +++ b/templates/webpages/ct/form_header_master.html @@ -363,7 +363,7 @@ name = 'cp_id', id = 'cp_id', DATA = CONTACTS, - onChange = "get_contact(['cp_id__'+this.value],['cp_name','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2','cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact,set_gender])", + onChange = "on_contact_changed()", id_key = 'cp_id', label_sub = 'contacts_label', -%] @@ -387,6 +387,7 @@   [%- INCLUDE generic/multibox.html name = 'selected_cp_title', + id = 'selected_cp_title', DATA = MB_TITLES, show_empty = 1, id_key = 'id', @@ -401,6 +402,7 @@   [%- INCLUDE generic/multibox.html name = 'selected_cp_abteilung', + id = 'selected_cp_abteilung', DATA = MB_DEPARTMENT, show_empty = 1, id_key = 'id', @@ -633,6 +635,7 @@ + - - - -- 2.20.1