Lines 1043-1049
Link Here
|
1043 |
</div> |
1043 |
</div> |
1044 |
|
1044 |
|
1045 |
<div class="modal-body"> |
1045 |
<div class="modal-body"> |
1046 |
<p>Are you sure you want to cancel this hold?</p> |
1046 |
<p id="cancellation-text"></p> |
1047 |
|
1047 |
|
1048 |
<fieldset class="action"> |
1048 |
<fieldset class="action"> |
1049 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1049 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
Lines 1560-1565
Link Here
|
1560 |
let cancel_link; |
1560 |
let cancel_link; |
1561 |
$(".cancel-hold").on("click",function(e) { |
1561 |
$(".cancel-hold").on("click",function(e) { |
1562 |
e.preventDefault; |
1562 |
e.preventDefault; |
|
|
1563 |
var borrower_name = $(this).data('borrower-name'); |
1564 |
var biblio_title = $(this).data('biblio-title'); |
1565 |
|
1566 |
$("#cancellation-text").html(`Are you sure you want to cancel hold of <b>${biblio_title}</b> for <b>${borrower_name}</b>?`); |
1567 |
|
1563 |
cancel_link = $(this); |
1568 |
cancel_link = $(this); |
1564 |
$('#cancelModal').modal(); |
1569 |
$('#cancelModal').modal(); |
1565 |
return false; |
1570 |
return false; |