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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/overdrive-checkout.inc (-19 / +23 lines)
Lines 1-19 Link Here
1
<div id="overdrive-checkout" class="modal" tabindex="-1" role="dialog" aria-labelledby="overdrive-checkout-label" aria-hidden="true">
1
<div class="modal" id="overdrive-checkout" tabindex="-1" aria-labelledby="overdrive-checkoutLabel" aria-hidden="true">
2
    <div class="modal-header">
2
    <div class="modal-dialog">
3
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
3
        <div class="modal-content">
4
        <h3 id="overdrive-checkout-label">Checkout</h3>
4
            <div class="modal-header">
5
    </div>
5
                <h5 class="modal-title" id="overdrive-checkoutLabel">Select a download format</h5>
6
    <form action="#" method="post" id="overdrive-checkout-form">
6
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
7
        <div class="modal-body">
7
                    <span aria-hidden="true">&times;</span>
8
                <input type="hidden" name="id" value="" />
8
                </button>
9
                <fieldset class="brief">
9
            </div>
10
                    <label for="format">Format:</label>
10
            <form action="#" method="post" id="overdrive-checkout-form">
11
                    <ul class="overdrive-format-list">
11
                <div class="modal-body">
12
                </fieldset>
12
                    <input type="hidden" name="id" value="" />
13
        </div>
13
                    <div id="overdrive-format-list">
14
        <div class="modal-footer">
14
                    </div>
15
            <input type="submit" class="btn btn-primary overdrive-checkout-submit" value="Checkout" />
15
                </div>
16
            <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
16
                <div class="modal-footer">
17
        </div>
17
                    <button type="submit" class="btn btn-primary overdrive-checkout-submit">Save changes</button>
18
    </form> <!-- /#overdrive-checkout-form -->
18
                    <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
19
</div>  <!-- /#overdrive-checkout  -->
19
                </div>
20
            </form> <!-- /#overdrive-checkout-form -->
21
        </div> <!-- /.modal-content -->
22
    </div> <!-- /.modal-dialog -->
23
</div> <!-- /.modal -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js (-7 / +7 lines)
Lines 413-425 KOHA.OverDriveCirculation = new function() { Link Here
413
            return false;
413
            return false;
414
        }
414
        }
415
415
416
        var checkout_format_list = checkout_popup.find("ul.overdrive-format-list").empty();
416
        var checkout_format_list = checkout_popup.find("#overdrive-format-list").empty();
417
        formats.forEach(function (item) {
417
        formats.forEach(function (item) {
418
            var li = $('<li>').appendTo(checkout_format_list);
418
            var line = $("<div/>").addClass("form-check");
419
            $('<input name="checkout-format" type="radio">')
419
            var input = '<input id="' + item + '" class="form-check-input" value="' + item + '" name="checkout-format" type="radio" /> ';
420
                .val(item)
420
            var label = '<label for="' + item + '">' + item + '</label>"';
421
                .appendTo(li);
421
            $(input).appendTo( line );
422
            li.append(item);
422
            $(label).appendTo( line );
423
            line.appendTo( checkout_format_list );
423
        });
424
        });
424
        checkout_popup.modal("show");
425
        checkout_popup.modal("show");
425
        checkout_popup.find(".overdrive-checkout-submit").click(function(e) {
426
        checkout_popup.find(".overdrive-checkout-submit").click(function(e) {
426
- 

Return to bug 28537