Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 974e8264

Von Sven Schöling vor mehr als 6 Jahren hinzugefügt

  • ID 974e8264c338823486ae5d4fcece5c4712e66833
  • Vorgänger 5aacb82b
  • Nachfolger a34c6b88

Part: partpicker enterverhalten direkt im picker setzen

Nachträglich drandongeln gibt Probleme

Unterschiede anzeigen:

js/kivi.Part.js
755 755
       ns.reformat_number(event);
756 756
    });
757 757

  
758
    $('.add_makemodel_input').keydown(function(event) {
759
      if(event.keyCode == 13) {
760
        event.preventDefault();
761
        ns.add_makemodel_row();
762
        return false;
763
      }
764
    });
765

  
766
    $('.add_customerprice_input').keydown(function(event) {
767
      if(event.keyCode == 13) {
768
        event.preventDefault();
769
        ns.add_customerprice_row();
770
        return false;
771
      }
772
    });
773

  
774 758
    $('#part_warehouse_id').change(kivi.Part.reload_bin_selection);
775 759

  
776 760
    ns.init();
templates/webpages/part/_customerprices.html
30 30
         <td></td>
31 31
         <td></td>
32 32
         <td align="right">[% 'Customer' | $T8 %]</td>
33
         <td rowspan="2">[% P.customer_vendor.customer_picker('add_customerprice', '', style='width: 300px', class="add_customerprice_input") %]</td>
33
         <td rowspan="2">[% P.customer_vendor.customer_picker('add_customerprice', '', style='width: 300px', class="add_customerprice_input", action={commit_one='kivi.Part.add_customerprice_row'}) %]</td>
34 34
         <td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_customerprice_row()', LxERP.t8('Add')) %]</td>
35 35
        </tr>
36 36
       </tbody>
templates/webpages/part/_makemodel.html
31 31
         <td></td>
32 32
         <td></td>
33 33
         <td align="right">[% 'Vendor' | $T8 %]</td>
34
         <td rowspan="2">[% P.customer_vendor.picker('add_makemodel', '', type='vendor', style='width: 300px', class="add_makemodel_input") %]</td>
34
         <td rowspan="2">[% P.customer_vendor.picker('add_makemodel', '', type='vendor', style='width: 300px', class="add_makemodel_input", action={commit_one='kivi.Part.add_makemodel_row'}) %]</td>
35 35
         <td rowspan="2" align="right">[% L.button_tag('kivi.Part.add_makemodel_row()', LxERP.t8('Add')) %]</td>
36 36
        </tr>
37 37
       </tbody>

Auch abrufbar als: Unified diff