Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 95a9314a

Von Moritz Bunkus vor fast 15 Jahren hinzugefügt

  • ID 95a9314a3ccbfcbcbebef1929577361c21c54cf0
  • Vorgänger 97e073c4
  • Nachfolger 77557166

Bei Wechsel Ansprechpartner Drop-Down-Boxen für Titel/Abteilung zurücksetzen

Fix für Bug 1311.

Unterschiede anzeigen:

bin/mozilla/ct.pl
654 654
  my %myconfig = %main::myconfig;
655 655

  
656 656
  CT->get_shipto(\%myconfig, \%$form);
657
  print $form->ajax_response_header(),  join '__pjx__', map $form->{"shipto$_"},
658
    qw(name department_1 department_2 street zipcode city country contact phone fax email used);
657
  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)));
659 658
  $main::lxdebug->leave_sub();
660 659

  
661 660
}
templates/webpages/ct/form_header_de.html
363 363
             name       = 'cp_id',
364 364
             id         = 'cp_id',
365 365
             DATA       = CONTACTS,
366
             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])",
366
             onChange   = "on_contact_changed()",
367 367
             id_key     = 'cp_id',
368 368
             label_sub  = 'contacts_label',
369 369
       -%]
......
387 387
       <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">&nbsp;
388 388
       [%- INCLUDE generic/multibox.html
389 389
             name       = 'selected_cp_title',
390
             id         = 'selected_cp_title',
390 391
             DATA       = MB_TITLES,
391 392
             show_empty = 1,
392 393
             id_key     = 'id',
......
401 402
       <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">&nbsp;
402 403
       [%- INCLUDE generic/multibox.html
403 404
             name       = 'selected_cp_abteilung',
405
             id         = 'selected_cp_abteilung',
404 406
             DATA       = MB_DEPARTMENT,
405 407
             show_empty = 1,
406 408
             id_key     = 'id',
......
633 635

  
634 636
  </div>
635 637

  
638
  <script type="text/javascript" src="js/jquery.js"></script>
636 639
  <script type="text/javascript">
637 640
   <!--
638 641
   function set_gender(gender) {
......
641 644
       s.selectedIndex = (gender == 'f') ? 1 : 0;
642 645
     }
643 646
   }
647

  
648
   function on_contact_changed() {
649
     get_contact(['cp_id__' + $('#cp_id').attr('value')],
650
                 ['cp_name','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2',
651
                  'cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact,set_gender]);
652
     $('#selected_cp_title').attr('selectedIndex', 0);
653
     $('#selected_cp_abteilung').attr('selectedIndex', 0);
654
   }
644 655
  -->
645 656

  
646 657
  </script>
647

  
648

  
649

  
templates/webpages/ct/form_header_master.html
363 363
             name       = 'cp_id',
364 364
             id         = 'cp_id',
365 365
             DATA       = CONTACTS,
366
             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])",
366
             onChange   = "on_contact_changed()",
367 367
             id_key     = 'cp_id',
368 368
             label_sub  = 'contacts_label',
369 369
       -%]
......
387 387
       <input id="cp_title" name="cp_title" size="40" maxlength="75" value="[% HTML.escape(cp_title) %]">&nbsp;
388 388
       [%- INCLUDE generic/multibox.html
389 389
             name       = 'selected_cp_title',
390
             id         = 'selected_cp_title',
390 391
             DATA       = MB_TITLES,
391 392
             show_empty = 1,
392 393
             id_key     = 'id',
......
401 402
       <input id="cp_abteilung" name="cp_abteilung" size="40" value="[% HTML.escape(cp_abteilung) %]">&nbsp;
402 403
       [%- INCLUDE generic/multibox.html
403 404
             name       = 'selected_cp_abteilung',
405
             id         = 'selected_cp_abteilung',
404 406
             DATA       = MB_DEPARTMENT,
405 407
             show_empty = 1,
406 408
             id_key     = 'id',
......
633 635

  
634 636
  </div>
635 637

  
638
  <script type="text/javascript" src="js/jquery.js"></script>
636 639
  <script type="text/javascript">
637 640
   <!--
638 641
   function set_gender(gender) {
......
641 644
       s.selectedIndex = (gender == 'f') ? 1 : 0;
642 645
     }
643 646
   }
647

  
648
   function on_contact_changed() {
649
     get_contact(['cp_id__' + $('#cp_id').attr('value')],
650
                 ['cp_name','cp_title','cp_givenname','cp_phone1','cp_phone2','cp_email','cp_abteilung','cp_fax','cp_mobile1','cp_mobile2',
651
                  'cp_satphone','cp_satfax','cp_project','cp_privatphone','cp_privatemail','cp_birthday',enable_delete_contact,set_gender]);
652
     $('#selected_cp_title').attr('selectedIndex', 0);
653
     $('#selected_cp_abteilung').attr('selectedIndex', 0);
654
   }
644 655
  -->
645 656

  
646 657
  </script>
647

  
648

  
649

  

Auch abrufbar als: Unified diff