Revision 29b647a4
Von Tamino Steinert vor 6 Tagen hinzugefügt
js/kivi.Reclamation.js | ||
---|---|---|
278 | 278 |
|
279 | 279 |
ns.unit_change = function(event) { |
280 | 280 |
var row = $(event.target).parents("tbody").first(); |
281 |
var item_id_dom = $(row).find('[name="reclamation_item_ids[+]"]'); |
|
281 |
var item_id_dom = $(row).find('[name="reclamation_items_ids[+]"]');
|
|
282 | 282 |
var sellprice_dom = $(row).find('[name="reclamation.reclamation_items[].sellprice_as_number"]'); |
283 | 283 |
var select_elt = $(row).find('[name="reclamation.reclamation_items[].unit"]'); |
284 | 284 |
|
... | ... | |
303 | 303 |
}; |
304 | 304 |
|
305 | 305 |
ns.load_second_row = function(row) { |
306 |
var item_id_dom = $(row).find('[name="reclamation_item_ids[+]"]'); |
|
306 |
var item_id_dom = $(row).find('[name="reclamation_items_ids[+]"]');
|
|
307 | 307 |
var div_elt = $(row).find('[name="second_row"]'); |
308 | 308 |
|
309 | 309 |
if ($(div_elt).data('loaded') == 1) { |
... | ... | |
322 | 322 |
}); |
323 | 323 |
|
324 | 324 |
var item_ids = $.map(rows, function(elt) { |
325 |
var item_id = $(elt).find('[name="reclamation_item_ids[+]"]').val(); |
|
325 |
var item_id = $(elt).find('[name="reclamation_items_ids[+]"]').val();
|
|
326 | 326 |
return { name: 'item_ids[]', value: item_id }; |
327 | 327 |
}); |
328 | 328 |
|
... | ... | |
481 | 481 |
// var elt = $('.row_entry [data-position="' + wanted_pos + '"]'); |
482 | 482 |
$('.row_entry').each(function(idx, elt) { |
483 | 483 |
if ($(elt).data("position") == wanted_pos) { |
484 |
insert_before_item_id = $(elt).find('[name="reclamation_item_ids[+]"]').val(); |
|
484 |
insert_before_item_id = $(elt).find('[name="reclamation_items_ids[+]"]').val();
|
|
485 | 485 |
return false; |
486 | 486 |
} |
487 | 487 |
}); |
... | ... | |
636 | 636 |
|
637 | 637 |
ns.update_row_from_master_data = function(clicked) { |
638 | 638 |
var row = $(clicked).parents("tbody").first(); |
639 |
var item_id_dom = $(row).find('[name="reclamation_item_ids[+]"]'); |
|
639 |
var item_id_dom = $(row).find('[name="reclamation_items_ids[+]"]');
|
|
640 | 640 |
|
641 | 641 |
var data = $('#reclamation_form').serializeArray(); |
642 | 642 |
data.push({ name: 'action', value: 'Reclamation/update_row_from_master_data' }); |
... | ... | |
647 | 647 |
|
648 | 648 |
ns.update_all_rows_from_master_data = function() { |
649 | 649 |
var item_ids = $.map($('.row_entry'), function(elt) { |
650 |
var item_id = $(elt).find('[name="reclamation_item_ids[+]"]').val(); |
|
650 |
var item_id = $(elt).find('[name="reclamation_items_ids[+]"]').val();
|
|
651 | 651 |
return { name: 'item_ids[]', value: item_id }; |
652 | 652 |
}); |
653 | 653 |
|
Auch abrufbar als: Unified diff
Reclamation: JS: FIX: Typo in Selector