Revision 8b0265d1
Von Bernd Bleßmann vor 4 Monaten hinzugefügt
SL/Presenter/Warehouse.pm | ||
---|---|---|
58 | 58 |
with_empty => $with_empty, |
59 | 59 |
title_key => 'description', |
60 | 60 |
onchange => 'kivi.Warehouse.wh_changed(this);', |
61 |
'data-bin-dom-name' => $bin_name, |
|
62 | 61 |
'data-bin-dom-id' => $bin_id, |
63 | 62 |
class => $wh_class, |
64 | 63 |
%attributes |
js/kivi.Warehouse.js | ||
---|---|---|
2 | 2 |
|
3 | 3 |
ns.wh_changed = function(target) { |
4 | 4 |
const wh_id = $(target).val(); |
5 |
const bin_dom_name = $(target).data('bin-dom-name'); |
|
6 | 5 |
const bin_dom_id = $(target).data('bin-dom-id'); |
7 | 6 |
$.post("controller.pl", { action: 'Warehouse/wh_bin_select_update_bins', |
8 | 7 |
wh_id: wh_id, |
Auch abrufbar als: Unified diff
Presenter Lagerplatz: data-Feld für Namen des bin-Selects nicht mehr nötig