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 51-57 Link Here
51
[% Asset.js('js/Gettext.js') | $raw %]
51
[% Asset.js('js/Gettext.js') | $raw %]
52
[% Asset.js('js/i18n.js') | $raw %]
52
[% Asset.js('js/i18n.js') | $raw %]
53
</head>
53
</head>
54
<body id="sci_main" class="sci" onload="dofocus();" onunload="mungeHistory();">
54
<body id="sci_main" class="sci">
55
    [% INCLUDE 'masthead-sci.inc' %]
55
    [% INCLUDE 'masthead-sci.inc' %]
56
56
57
    <div class="main">
57
    <div class="main">
Lines 209-214 Link Here
209
209
210
        var barcodes = [];
210
        var barcodes = [];
211
211
212
        $( window ).on( "load", function() {
213
            dofocus();
214
        });
215
216
        $( window ).on( "unload", function() {
217
            mungeHistory();
218
        });
219
212
        $(document).ready(function() {
220
        $(document).ready(function() {
213
            // Barcodes scanning table initially hidden
221
            // Barcodes scanning table initially hidden
214
            $("#sci_barcodes_table").hide();
222
            $("#sci_barcodes_table").hide();
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-3 / +13 lines)
Lines 32-38 Link Here
32
[% Asset.js('js/Gettext.js') | $raw %]
32
[% Asset.js('js/Gettext.js') | $raw %]
33
[% Asset.js('js/i18n.js') | $raw %]
33
[% Asset.js('js/i18n.js') | $raw %]
34
</head>
34
</head>
35
<body id="sco_main" class="sco" onload="dofocus();" onunload="mungeHistory();">
35
<body id="sco_main" class="sco">
36
    [% INCLUDE 'masthead-sco.inc' %]
36
    [% INCLUDE 'masthead-sco.inc' %]
37
37
38
    <div class="main">
38
    <div class="main">
Lines 241-247 Link Here
241
241
242
                        [% IF ( validuser ) %]
242
                        [% IF ( validuser ) %]
243
                            <div id="newcheckout" class="sco_entry">
243
                            <div id="newcheckout" class="sco_entry">
244
                                <form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl" onsubmit="return checkout_confirm('[% patronid | html %]');">
244
                                <form id="scan_form" name="scan_form" method="post" action="/cgi-bin/koha/sco/sco-main.pl">
245
                                    <legend><h2>
245
                                    <legend><h2>
246
                                        [% IF ( Koha.Preference('SCOAllowCheckin') ) %]
246
                                        [% IF ( Koha.Preference('SCOAllowCheckin') ) %]
247
                                            <span>Check out, return, or renew an item:</span>
247
                                            <span>Check out, return, or renew an item:</span>
Lines 499-504 Link Here
499
            }
499
            }
500
        [% END %]
500
        [% END %]
501
501
502
        $( window ).on( "load", function() {
503
            dofocus();
504
        });
505
506
        $( window ).on( "unload", function() {
507
            mungeHistory();
508
        });
502
509
503
        $(document).ready(function() {
510
        $(document).ready(function() {
504
            dofocus();
511
            dofocus();
Lines 533-538 Link Here
533
540
534
                return true;
541
                return true;
535
            });
542
            });
543
544
            $("#scan_form").on("submit", function(){
545
                return checkout_confirm('[% patronid | html %]');
546
            });
536
    });
547
    });
537
548
538
    </script>
549
    </script>
539
- 

Return to bug 34946