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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/overdrive-login.inc (+18 lines)
Line 0 Link Here
1
<div id="overdrive-login" class="modal hide" tabindex="-1" role="dialog" aria-labelledby="overdrive-login-label" aria-hidden="true">
2
    <div class="modal-header">
3
        <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
4
        <h3 id="overdrive-login-label">Login</h3>
5
    </div>
6
    <form action="#" method="post" id="overdrive-login-form">
7
        <div class="modal-body">
8
                <fieldset class="brief">
9
                    <label for="ODpassword">Password:</label>
10
                    <input type="password" name="ODpassword" value="" />
11
                </fieldset>
12
        </div>
13
        <div class="modal-footer">
14
            <input type="submit" class="btn btn-primary overdrive-checkout-submit" value="Login" />
15
            <a href="#" data-dismiss="modal" aria-hidden="true" class="cancel">Cancel</a>
16
        </div>
17
    </form> <!-- /#overdrive-login-form -->
18
</div>  <!-- /#overdrive-login  -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-1 / +4 lines)
Lines 896-902 Link Here
896
</div> <!-- /#main -->
896
</div> <!-- /#main -->
897
897
898
[% IF ( OverDriveCirculation ) %]
898
[% IF ( OverDriveCirculation ) %]
899
[% INCLUDE 'overdrive-checkout.inc' %]
899
    [% INCLUDE 'overdrive-checkout.inc' %]
900
    [% IF ( Koha.Preference('OverDrivePasswordRequired') ) %]
901
        [% INCLUDE 'overdrive-login.inc' %]
902
    [% END %]
900
[% END %]
903
[% END %]
901
[% IF ( RecordedBooksCirculation ) %]
904
[% IF ( RecordedBooksCirculation ) %]
902
[% INCLUDE 'recordedbooks-checkout.inc' %]
905
[% INCLUDE 'recordedbooks-checkout.inc' %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js (-3 / +9 lines)
Lines 71-80 KOHA.OverDriveCirculation = new function() { Link Here
71
    var login_link = $('<a href="#">')
71
    var login_link = $('<a href="#">')
72
        .click(function(e) {
72
        .click(function(e) {
73
            e.preventDefault();
73
            e.preventDefault();
74
            var passwd = OD_password_required ? prompt("Please enter your password") : "";
74
            if( OD_password_required ) { $("#overdrive-login").modal('show'); }
75
            login(passwd);
75
            else { login(""); }
76
        })
76
        })
77
        .text(_("Login to OverDrive account"));
77
        .text(_("Login to OverDrive account"));
78
78
    var login_div = $('<div class="overdrive-login">').append(login_link);
79
    var login_div = $('<div class="overdrive-login">').append(login_link);
79
80
80
    var details = null;
81
    var details = null;
Lines 97-102 KOHA.OverDriveCirculation = new function() { Link Here
97
            window.close();
98
            window.close();
98
        }
99
        }
99
        checkout_popup = $("#overdrive-checkout");
100
        checkout_popup = $("#overdrive-checkout");
101
        $("#overdrive-login-form").submit(function(e){
102
            e.preventDefault();
103
            $("#overdrive-login").modal('hide');
104
            var ODpassword = $("input[name='ODpassword']").val();
105
            login( ODpassword );
106
        });
100
    });
107
    });
101
108
102
    function display_account (container, data) {
109
    function display_account (container, data) {
103
- 

Return to bug 21542