View | Details | Raw Unified | Return to bug 7948
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-34 / +35 lines)
Lines 5-44 Link Here
5
<script type="text/javascript">
5
<script type="text/javascript">
6
//<![CDATA[
6
//<![CDATA[
7
function Dopop(link) {
7
function Dopop(link) {
8
    var newin=window.open(link,'popup','width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
8
    var newin = window.open(link, 'popup', 'width=600,height=400,resizable=1,toolbar=0,scrollbars=1,top');
9
    $("#barcode").focus();
9
}
10
}
10
	 $(document).ready(function() {
11
$(document).ready(function () {
11
	 	$("#exemptcheck").change(function(){
12
    $("#exemptcheck").change(function () {
12
			if(this.checked == true) {
13
        if (this.checked == true) {
13
				$("#barcode").addClass("alert");
14
            $("#barcode").addClass("alert");
14
				$("#exemptfines").show();
15
            $("#exemptfines").show();
15
			} else {
16
        } else {
16
				$("#barcode").removeClass("alert");
17
            $("#barcode").removeClass("alert");
17
				$("#exemptfines").hide();
18
            $("#exemptfines").hide();
18
			}
19
        }
19
			$("#barcode").focus();
20
        $("#barcode").focus();
20
		});
21
    });
21
	 	$("#dropboxcheck").change(function(){
22
    $("#dropboxcheck").change(function () {
22
			if (this.checked == true) {
23
        if (this.checked == true) {
23
				$("#barcode").addClass("alert");
24
            $("#barcode").addClass("alert");
24
				$("#dropboxmode").show();
25
            $("#dropboxmode").show();
25
			} else {
26
        } else {
26
				$("#barcode").removeClass("alert");
27
            $("#barcode").removeClass("alert");
27
				$("#dropboxmode").hide();
28
            $("#dropboxmode").hide();
28
			}
29
        }
29
			$("#barcode").focus();
30
        $("#barcode").focus();
30
		});
31
    });
31
		[% IF ( overduecharges ) %]$("#barcode").focus(function(){
32
    [% IF(overduecharges) %] $("#barcode").focus(function () {
32
			if(($("#exemptcheck").attr("checked") == true)||($("#dropboxcheck").attr("checked") == true)){
33
        if (($("#exemptcheck").attr("checked") == true) || ($("#dropboxcheck").attr("checked") == true)) {
33
				$("#barcode").addClass("alert");
34
            $("#barcode").addClass("alert");
34
			} else {
35
        } else {
35
				$("#barcode").removeClass("alert");
36
            $("#barcode").removeClass("alert");
36
			}
37
        }
37
		});
38
    });
38
		$("#barcode").blur(function(){
39
    $("#barcode").blur(function () {
39
			$("#barcode").removeClass("alert");
40
        $("#barcode").removeClass("alert");
40
		});[% END %]
41
    });
41
	 });
42
    [% END %]
43
});
42
//]]>
44
//]]>
43
</script>
45
</script>
44
</head>
46
</head>
45
- 

Return to bug 7948