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 |
let borrower_name = $(this).data('borrower-name')?.trim(); |
1564 |
let biblio_title = $(this).data('biblio-title')?.trim(); |
1565 |
|
1566 |
let cancellation_text = _(`Are you sure you want to cancel hold on "${biblio_title}" for "${borrower_name}"?`); |
1567 |
$("#cancellation-text").html(cancellation_text); |
1568 |
|
1563 |
cancel_link = $(this); |
1569 |
cancel_link = $(this); |
1564 |
$('#cancelModal').modal(); |
1570 |
$('#cancelModal').modal(); |
1565 |
return false; |
1571 |
return false; |