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 |
- |
|
|