Revision 594ec6f3
Von Bernd Bleßmann vor fast 4 Jahren hinzugefügt
js/kivi.Order.js | ||
---|---|---|
458 | 458 |
$.post("controller.pl", data, kivi.eval_json_result); |
459 | 459 |
}; |
460 | 460 |
|
461 |
ns.open_multi_items_dialog = function() { |
|
462 |
var pp = $("#add_item_parts_id").data("part_picker"); |
|
463 |
pp.o.multiple=1; |
|
464 |
pp.open_dialog(); |
|
465 |
}; |
|
466 |
|
|
461 | 467 |
ns.add_multi_items = function(data) { |
462 | 468 |
var insert_before_item_id = ns.get_insert_before_item_id($('#multi_items_position').val()); |
463 | 469 |
data = data.concat($('#order_form').serializeArray()); |
templates/webpages/order/tabs/basic_data.html | ||
---|---|---|
227 | 227 |
|
228 | 228 |
[%- PROCESS order/tabs/_item_input.html SELF=SELF %] |
229 | 229 |
|
230 |
[% L.button_tag('$("#add_item_parts_id").data("part_picker").o.multiple=1; $("#add_item_parts_id").data("part_picker").open_dialog()', LxERP.t8('Add multiple items')) %]
|
|
230 |
[% L.button_tag('kivi.Order.open_multi_items_dialog()', LxERP.t8('Add multiple items')) %]
|
|
231 | 231 |
|
232 | 232 |
<table width="100%"> |
233 | 233 |
<tr> |
Auch abrufbar als: Unified diff
Auftrags-Controller: Artikel-Mehrfachauswahl: js-Code aus Template ausgelagert