Lines 9-21
Link Here
|
9 |
function Check(form) { |
9 |
function Check(form) { |
10 |
[% IF (AcqCreateItemReceiving) %] |
10 |
[% IF (AcqCreateItemReceiving) %] |
11 |
var total_errors=0; |
11 |
var total_errors=0; |
12 |
$("input[name='mandatory'],select[name='mandatory']").each(function(i){ |
12 |
$(f).find(".subfield_line input[name='mandatory'][value='1']").each(function(i){ |
13 |
if($(this).val() == 1){ |
13 |
var mandatory_field = $(this).siblings("[name='field_value']"); |
14 |
var mandatory_field = $("input[name='field_value'],select[name='field_value']").eq(i); |
14 |
if (mandatory_field.val() == '') { |
15 |
if(mandatory_field.val() == ''){ |
15 |
mandatory_field.addClass("missing"); |
16 |
mandatory_field.addClass("missing"); |
16 |
total_errors++; |
17 |
total_errors++; |
|
|
18 |
} |
19 |
} |
17 |
} |
20 |
}); |
18 |
}); |
21 |
|
19 |
|