Lines 1038-1044
Link Here
|
1038 |
</div> |
1038 |
</div> |
1039 |
|
1039 |
|
1040 |
<div class="modal-body"> |
1040 |
<div class="modal-body"> |
1041 |
<p>Are you sure you want to cancel this hold?</p> |
1041 |
<p id="cancellation-text"></p> |
1042 |
|
1042 |
|
1043 |
<fieldset class="action"> |
1043 |
<fieldset class="action"> |
1044 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1044 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
Lines 1533-1538
Link Here
|
1533 |
let cancel_link; |
1533 |
let cancel_link; |
1534 |
$(".cancel-hold").on("click",function(e) { |
1534 |
$(".cancel-hold").on("click",function(e) { |
1535 |
e.preventDefault; |
1535 |
e.preventDefault; |
|
|
1536 |
var borrower_name = $(this).data('borrower-name'); |
1537 |
var biblio_title = $(this).data('biblio-title'); |
1538 |
|
1539 |
$("#cancellation-text").html(`Are you sure you want to cancel hold of <b>${biblio_title}</b> for <b>${borrower_name}</b>?`); |
1540 |
|
1536 |
cancel_link = $(this); |
1541 |
cancel_link = $(this); |
1537 |
$('#cancelModal').modal(); |
1542 |
$('#cancelModal').modal(); |
1538 |
return false; |
1543 |
return false; |