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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-6 / +22 lines)
Lines 60-65 function toggle_onsite_checkout(){ Link Here
60
}
60
}
61
61
62
$(document).ready(function() {
62
$(document).ready(function() {
63
    [% IF !NEEDSCONFIRMATION %]
64
        $('#barcode').prop('disabled', false).focus();
65
    [% END %]
66
    $('#mainform').bind('submit',function() {
67
        $('#barcode').on('keypress',function(event) {
68
            $('#myModal').modal();
69
            event.preventDefault(); }
70
        );
71
    });
72
73
63
    [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
74
    [% IF !( CircAutoPrintQuickSlip == 'clear' ) %]
64
        // listen submit to trigger qslip on empty checkout
75
        // listen submit to trigger qslip on empty checkout
65
        $('#mainform').bind('submit',function() {
76
        $('#mainform').bind('submit',function() {
Lines 528-538 No patron matched <span class="ex">[% message %]</span> Link Here
528
539
529
	<div class="hint">Enter item barcode:</div>
540
	<div class="hint">Enter item barcode:</div>
530
541
531
    [% IF NEEDSCONFIRMATION %]
542
    <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
532
	    <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" disabled="disabled" />
533
    [% ELSE %]
534
	    <input type="text" name="barcode" id="barcode" class="barcode focus" size="14" />
535
    [% END %]
536
    <button type="submit" class="btn">Check out</button>
543
    <button type="submit" class="btn">Check out</button>
537
544
538
    <div class="date-select">
545
    <div class="date-select">
Lines 871-874 No patron matched <span class="ex">[% message %]</span> Link Here
871
[% INCLUDE 'circ-menu.inc' %]
878
[% INCLUDE 'circ-menu.inc' %]
872
</div>[% END %][% END %]
879
</div>[% END %][% END %]
873
</div>
880
</div>
881
<!-- Modal -->
882
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
883
    <div class="modal-header">
884
        <h3 id="myModalLabel">Barcode submitted</h3>
885
    </div>
886
887
    <div class="modal-body">
888
        <p>You have already submitted a barcode, please wait for the checkout to process...</p>
889
    </div>
890
</div>
874
[% INCLUDE 'intranet-bottom.inc' %]
891
[% INCLUDE 'intranet-bottom.inc' %]
875
- 

Return to bug 13415