Lines 2-24
Link Here
|
2 |
<title>Koha › Acquisitions › Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title> |
2 |
<title>Koha › Acquisitions › Receipt summary for : [% name %] [% IF ( invoice ) %]invoice, [% invoice %][% END %]</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'additem.js.inc' %] |
4 |
[% INCLUDE 'additem.js.inc' %] |
5 |
<script type="text/javascript" src="[% themelang %]/js/additem.js"> </script> |
5 |
<script type="text/javascript" src="[% themelang %]/js/additem.js"></script> |
|
|
6 |
<script type="text/javascript" src="[% themelang %]/js/cataloging.js"></script> |
6 |
<script type="text/javascript" src="[% themelang %]/js/prevent_submit.js"></script> |
7 |
<script type="text/javascript" src="[% themelang %]/js/prevent_submit.js"></script> |
7 |
<script type="text/javascript"> |
8 |
<script type="text/javascript"> |
8 |
//<![CDATA[ |
9 |
//<![CDATA[ |
9 |
function Check(form) { |
10 |
function Check(form) { |
10 |
[% IF (AcqCreateItemReceiving) %] |
11 |
[% IF (AcqCreateItemReceiving) %] |
11 |
var total_errors=0; |
12 |
var total_errors = CheckMandatorySubfields(form); |
12 |
$("input[name='mandatory'],select[name='mandatory']").each(function(i){ |
|
|
13 |
if($(this).val() == 1){ |
14 |
var mandatory_field = $("input[name='field_value'],select[name='field_value']").eq(i); |
15 |
if(mandatory_field.val() == ''){ |
16 |
mandatory_field.addClass("missing"); |
17 |
total_errors++; |
18 |
} |
19 |
} |
20 |
}); |
21 |
|
22 |
if (total_errors != 0) { |
13 |
if (total_errors != 0) { |
23 |
var alertString = _("Form not submitted because of the following problem(s)"); |
14 |
var alertString = _("Form not submitted because of the following problem(s)"); |
24 |
alertString += "\n------------------------------------------------------------------------------------\n"; |
15 |
alertString += "\n------------------------------------------------------------------------------------\n"; |