|
Lines 1263-1269
Link Here
|
| 1263 |
|
1263 |
|
| 1264 |
<div class="modal-body"> |
1264 |
<div class="modal-body"> |
| 1265 |
<p>Are you sure you want to cancel this hold?</p> |
1265 |
<p>Are you sure you want to cancel this hold?</p> |
| 1266 |
|
1266 |
<div id="cancel_hold_alert" class="alert alert-danger"></div> |
| 1267 |
<fieldset class="action"> |
1267 |
<fieldset class="action"> |
| 1268 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1268 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
| 1269 |
[% IF hold_cancellation.count %] |
1269 |
[% IF hold_cancellation.count %] |
|
Lines 1341-1346
Link Here
|
| 1341 |
} |
1341 |
} |
| 1342 |
|
1342 |
|
| 1343 |
var MSG_CANCEL_SELECTED = _("Cancel selected (%s)"); |
1343 |
var MSG_CANCEL_SELECTED = _("Cancel selected (%s)"); |
|
|
1344 |
var MSG_CANCEL_ALERT = _("This action will cancel <span class='badge'>%s</span> hold(s)."); |
| 1344 |
$.fn.select2.defaults.set("width", "100%" ); |
1345 |
$.fn.select2.defaults.set("width", "100%" ); |
| 1345 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
1346 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
| 1346 |
|
1347 |
|
|
Lines 1709-1714
Link Here
|
| 1709 |
$('.select_hold', table).prop('checked', !count); |
1710 |
$('.select_hold', table).prop('checked', !count); |
| 1710 |
$(this).prop('checked', !count); |
1711 |
$(this).prop('checked', !count); |
| 1711 |
$('.cancel_selected_holds').html(MSG_CANCEL_SELECTED.format($('.holds_table .select_hold:checked').length)); |
1712 |
$('.cancel_selected_holds').html(MSG_CANCEL_SELECTED.format($('.holds_table .select_hold:checked').length)); |
|
|
1713 |
$('#cancel_hold_alert').html( MSG_CANCEL_ALERT.format($('.holds_table .select_hold:checked').length)); |
| 1712 |
localStorage.selectedHolds = $('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')); |
1714 |
localStorage.selectedHolds = $('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')); |
| 1713 |
}); |
1715 |
}); |
| 1714 |
|
1716 |
|
|
Lines 1717-1722
Link Here
|
| 1717 |
var count = $('.select_hold:not(:checked)', table).length; |
1719 |
var count = $('.select_hold:not(:checked)', table).length; |
| 1718 |
$('.select_hold_all', table).prop('checked', !count); |
1720 |
$('.select_hold_all', table).prop('checked', !count); |
| 1719 |
$('.cancel_selected_holds').html(MSG_CANCEL_SELECTED.format($('.holds_table .select_hold:checked').length)); |
1721 |
$('.cancel_selected_holds').html(MSG_CANCEL_SELECTED.format($('.holds_table .select_hold:checked').length)); |
|
|
1722 |
$('#cancel_hold_alert').html( MSG_CANCEL_ALERT.format($('.holds_table .select_hold:checked').length)); |
| 1720 |
localStorage.selectedHolds = $('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')); |
1723 |
localStorage.selectedHolds = $('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')); |
| 1721 |
}); |
1724 |
}); |
| 1722 |
|
1725 |
|
| 1723 |
- |
|
|