Revision 08ca74a8
Von Moritz Bunkus vor mehr als 16 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
566 | 566 |
$auth->assert('customer_vendor_edit'); |
567 | 567 |
|
568 | 568 |
CT->get_contact(\%myconfig, \%$form); |
569 |
print $cgi->header(), join '__pjx__', map $form->{"cp_$_"},
|
|
569 |
print $form->ajax_response_header(), join '__pjx__', map $form->{"cp_$_"},
|
|
570 | 570 |
qw(name greeting title givenname phone1 phone2 email abteilung fax mobile1 mobile2 satphone satfax project privatphone privatemail birthday used); |
571 | 571 |
$lxdebug->leave_sub(); |
572 | 572 |
|
... | ... | |
578 | 578 |
$auth->assert('customer_vendor_edit'); |
579 | 579 |
|
580 | 580 |
CT->get_shipto(\%myconfig, \%$form); |
581 |
print $cgi->header(), join '__pjx__', map $form->{"shipto$_"},
|
|
581 |
print $form->ajax_response_header(), join '__pjx__', map $form->{"shipto$_"},
|
|
582 | 582 |
qw(name department_1 department_2 street zipcode city country contact phone fax email used); |
583 | 583 |
$lxdebug->leave_sub(); |
584 | 584 |
|
... | ... | |
591 | 591 |
|
592 | 592 |
CT->get_delivery(\%myconfig, \%$form ); |
593 | 593 |
|
594 |
print $cgi->header(), $form->parse_html_template('ct/get_delivery');
|
|
594 |
print $form->ajax_response_header(), $form->parse_html_template('ct/get_delivery');
|
|
595 | 595 |
|
596 | 596 |
$lxdebug->leave_sub(); |
597 | 597 |
} |
Auch abrufbar als: Unified diff
AJAX-Antworten nicht direkt $cgi->header() ausgeben, sondern über eine Funktion, die auch das Charset ausgibt.