if ((key == 'cancel') && !confirm(kivi.t8('Do you really want to cancel?')))
return true;
+ else if ((key == 'create') && $('#quotations_and_orders_form INPUT[name="sections[].order_part_id"]').filter(function(idx, elt) { return ($(elt).val() || '') == '' }).size()) {
+ alert(kivi.t8('There is one or more sections for which no part has been assigned yet; therefore creating the new record is not possible yet.'));
+ return false;
+ }
+
var data = 'action=RequirementSpecOrder/' + key
+ '&' + $('#requirement_spec_id').serialize();