X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5ca41cde212c8c699f835f292849786091c921af..2c92b5acfbbc7486730ec7feec509abbdcbc7ebc:/js/requirement_spec.js?ds=inline diff --git a/js/requirement_spec.js b/js/requirement_spec.js index e059e8400..00e4319a0 100644 --- a/js/requirement_spec.js +++ b/js/requirement_spec.js @@ -408,10 +408,18 @@ ns.disable_create_quotation_order_commands = function(key, opt) { }; ns.assign_order_part_id_to_all = function() { - var order_part_id = $('#quoations_and_orders_order_id').val(); - $('#quotations_and_orders_form SELECT[name="sections[].order_part_id"]').each(function(idx, elt) { + var order_part_id = $('#quotations_and_orders_order_id').val(); + var order_part_name = $('#quotations_and_orders_order_id_name').val(); + + $('#quotations_and_orders_form INPUT[name="sections[].order_part_id"]').each(function(idx, elt) { $(elt).val(order_part_id); }); + + $('#quotations_and_orders_form [id^=quotations_and_orders_sections_order_pard_id_]').filter(function() { + return $(this).attr('id') && $(this).attr('id').match("^quotations_and_orders_sections_order_pard_id_[0-9]+_name$"); + }).each(function(idx, elt) { + $(elt).val(order_part_name); + }); }; // -------------------------------------------------------------------------