Revision 579f5842
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
50 | 50 |
partnumber => $_->partnumber, |
51 | 51 |
description => $_->description, |
52 | 52 |
type => $_->type, |
53 |
unit => $_->unit, |
|
53 | 54 |
} |
54 | 55 |
} @{ $self->parts }; # neato: if exact match triggers we don't even need the init_parts |
55 | 56 |
|
js/autocomplete_part.js | ||
---|---|---|
71 | 71 |
state = STATES.PICKED; |
72 | 72 |
last_real = $real.val(); |
73 | 73 |
last_dummy = $dummy.val(); |
74 |
$real.trigger('change'); |
|
74 |
$real.trigger('change').trigger('set_item:PartPicker', item);
|
|
75 | 75 |
} |
76 | 76 |
|
77 | 77 |
function make_defined_state () { |
Auch abrufbar als: Unified diff
PartPicker: nach Artikelauswahl custom event 'set_item:PartPicker' mit item-Daten verschicken