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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt (-1 / +9 lines)
Lines 59-65 Link Here
59
[% Asset.js('js/Gettext.js') | $raw %]
59
[% Asset.js('js/Gettext.js') | $raw %]
60
[% Asset.js('js/i18n.js') | $raw %]
60
[% Asset.js('js/i18n.js') | $raw %]
61
</head>
61
</head>
62
<body id="sci_main" class="sci" onload="dofocus();" onunload="mungeHistory();">
62
<body id="sci_main" class="sci">
63
    [% INCLUDE 'masthead-sci.inc' %]
63
    [% INCLUDE 'masthead-sci.inc' %]
64
64
65
    <div class="main">
65
    <div class="main">
Lines 217-222 Link Here
217
217
218
        var barcodes = [];
218
        var barcodes = [];
219
219
220
        $( window ).on( "load", function() {
221
            dofocus();
222
        });
223
224
        $( window ).on( "unload", function() {
225
            mungeHistory();
226
        });
227
220
        $(document).ready(function() {
228
        $(document).ready(function() {
221
            // Barcodes scanning table initially hidden
229
            // Barcodes scanning table initially hidden
222
            $("#sci_barcodes_table").hide();
230
            $("#sci_barcodes_table").hide();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-3 / +13 lines)
Lines 39-45 Link Here
39
[% Asset.js('js/Gettext.js') | $raw %]
39
[% Asset.js('js/Gettext.js') | $raw %]
40
[% Asset.js('js/i18n.js') | $raw %]
40
[% Asset.js('js/i18n.js') | $raw %]
41
</head>
41
</head>
42
<body id="sco_main" class="sco" onload="dofocus();" onunload="mungeHistory();">
42
<body id="sco_main" class="sco">
43
    [% INCLUDE 'masthead-sco.inc' %]
43
    [% INCLUDE 'masthead-sco.inc' %]
44
44
45
    <div class="main">
45
    <div class="main">
Lines 248-254 Link Here
248
248
249
                        [% IF ( validuser ) %]
249
                        [% IF ( validuser ) %]
250
                            <div id="newcheckout" class="sco_entry">
250
                            <div id="newcheckout" class="sco_entry">
251
                                <form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid | html %]');">
251
                                <form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl">
252
                                    <legend><h2>
252
                                    <legend><h2>
253
                                        [% IF ( Koha.Preference('SCOAllowCheckin') ) %]
253
                                        [% IF ( Koha.Preference('SCOAllowCheckin') ) %]
254
                                            <span>Check out, return, or renew an item:</span>
254
                                            <span>Check out, return, or renew an item:</span>
Lines 506-511 Link Here
506
            }
506
            }
507
        [% END %]
507
        [% END %]
508
508
509
        $( window ).on( "load", function() {
510
            dofocus();
511
        });
512
513
        $( window ).on( "unload", function() {
514
            mungeHistory();
515
        });
509
516
510
        $(document).ready(function() {
517
        $(document).ready(function() {
511
            dofocus();
518
            dofocus();
Lines 540-545 Link Here
540
547
541
                return true;
548
                return true;
542
            });
549
            });
550
551
            $("#scan_form").on("submit", function(){
552
                return checkout_confirm('[% patronid | html %]');
553
            });
543
    });
554
    });
544
555
545
    </script>
556
    </script>
546
- 

Return to bug 34946