Lines 16-51
function popup(subscriptionid) {
Link Here
|
16 |
window.open("subscription-renew.pl?subscriptionid="+subscriptionid,"subscription_renewal",'width=700,height=400,toolbar=false,scrollbars=yes'); |
16 |
window.open("subscription-renew.pl?subscriptionid="+subscriptionid,"subscription_renewal",'width=700,height=400,toolbar=false,scrollbars=yes'); |
17 |
} |
17 |
} |
18 |
|
18 |
|
19 |
function barcode_check(){ |
|
|
20 |
[% IF ( count ) %] |
21 |
var count = [% count %]; |
22 |
for(var i=1;i<=count;i++){ |
23 |
|
24 |
var barcodenum = "barcode"+i; |
25 |
var statusnum = "status"+i; |
26 |
var elembarcode = "document.getElementById('"+barcodenum+"')"; |
27 |
var elemstatus = "document.getElementById('"+statusnum+"')"; |
28 |
// alert(elembarcode+"\n"+eval(elembarcode+".value)); |
29 |
// alert(elemstatus+"\n"+eval(elemstatus+".value")); |
30 |
if(eval(elembarcode+".value") =='' && eval(elemstatus+".value") == 2){ |
31 |
var answer = confirm("Leave barcode blank?\n - Note: unable to change this later"); |
32 |
if (answer){ |
33 |
document.f.submit(); |
34 |
} else { |
35 |
return false; |
36 |
} |
37 |
} |
38 |
if(eval(elembarcode+".value".indexOf('TEMP')) > 0 && eval(elemstatus+".value") == 2){ |
39 |
var answer = confirm("A barcode was not entered.\nDo you want to put in a barcode\nor do you want to use a system generated barcode?"); |
40 |
if (answer){ |
41 |
document.f.submit(); |
42 |
} else { |
43 |
return false; |
44 |
} |
45 |
} |
46 |
} |
47 |
[% END %] |
48 |
} |
49 |
function unHideItems(index,labelindex, serialId) { |
19 |
function unHideItems(index,labelindex, serialId) { |
50 |
subfield = document.getElementById(index); |
20 |
subfield = document.getElementById(index); |
51 |
subfield.style.display = 'block'; |
21 |
subfield.style.display = 'block'; |
Lines 127-133
$(document).ready(function() {
Link Here
|
127 |
[% IF ( callnumber ) %] callnumber: [% callnumber %][% END %]</h1> |
97 |
[% IF ( callnumber ) %] callnumber: [% callnumber %][% END %]</h1> |
128 |
[% IF internalnotes %]<p>Nonpublic note: [% internalnotes %]</p>[% END %] |
98 |
[% IF internalnotes %]<p>Nonpublic note: [% internalnotes %]</p>[% END %] |
129 |
<form method="post" name="f" action="serials-edit.pl" id="serials_edit"> |
99 |
<form method="post" name="f" action="serials-edit.pl" id="serials_edit"> |
130 |
<!--onsubmit="return barcode_check()">--> |
|
|
131 |
|
100 |
|
132 |
[% IF ( Errors ) %] |
101 |
[% IF ( Errors ) %] |
133 |
<div class="dialog alert"> |
102 |
<div class="dialog alert"> |
134 |
- |
|
|