Revision 2c92b5ac
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
js/requirement_spec.js | ||
---|---|---|
408 | 408 |
}; |
409 | 409 |
|
410 | 410 |
ns.assign_order_part_id_to_all = function() { |
411 |
var order_part_id = $('#quoations_and_orders_order_id').val(); |
|
412 |
$('#quotations_and_orders_form SELECT[name="sections[].order_part_id"]').each(function(idx, elt) { |
|
411 |
var order_part_id = $('#quotations_and_orders_order_id').val(); |
|
412 |
var order_part_name = $('#quotations_and_orders_order_id_name').val(); |
|
413 |
|
|
414 |
$('#quotations_and_orders_form INPUT[name="sections[].order_part_id"]').each(function(idx, elt) { |
|
413 | 415 |
$(elt).val(order_part_id); |
414 | 416 |
}); |
417 |
|
|
418 |
$('#quotations_and_orders_form [id^=quotations_and_orders_sections_order_pard_id_]').filter(function() { |
|
419 |
return $(this).attr('id') && $(this).attr('id').match("^quotations_and_orders_sections_order_pard_id_[0-9]+_name$"); |
|
420 |
}).each(function(idx, elt) { |
|
421 |
$(elt).val(order_part_name); |
|
422 |
}); |
|
415 | 423 |
}; |
416 | 424 |
|
417 | 425 |
// ------------------------------------------------------------------------- |
Auch abrufbar als: Unified diff
Pflichtenhefte Angebote/Aufträge: "Artikel allen Abschnitten zuweisen" fixen