Lines 1084-1090
Link Here
|
1084 |
<input type="submit" class="btn btn-primary" name="submit" value="Update hold(s)" /> |
1084 |
<input type="submit" class="btn btn-primary" name="submit" value="Update hold(s)" /> |
1085 |
</div> |
1085 |
</div> |
1086 |
<div class="btn-group"> |
1086 |
<div class="btn-group"> |
1087 |
<button class="cancel_selected_holds" data-bulk="true"></button> |
1087 |
<button class="btn cancel_selected_holds" data-bulk="true"></button> |
1088 |
</div> |
1088 |
</div> |
1089 |
<fieldset id="cancellation-reason-fieldset" class="action" style="display:none"> |
1089 |
<fieldset id="cancellation-reason-fieldset" class="action" style="display:none"> |
1090 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1090 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
Lines 1273-1279
Link Here
|
1273 |
|
1273 |
|
1274 |
<div class="modal-body"> |
1274 |
<div class="modal-body"> |
1275 |
<p>Are you sure you want to cancel this hold?</p> |
1275 |
<p>Are you sure you want to cancel this hold?</p> |
1276 |
|
1276 |
<div id="cancel_hold_alert" class="alert alert-danger"></div> |
1277 |
<fieldset class="action"> |
1277 |
<fieldset class="action"> |
1278 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1278 |
[% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %] |
1279 |
[% IF hold_cancellation.count %] |
1279 |
[% IF hold_cancellation.count %] |
Lines 1336-1341
Link Here
|
1336 |
} |
1336 |
} |
1337 |
|
1337 |
|
1338 |
var MSG_CANCEL_SELECTED = _("Cancel selected (%s)"); |
1338 |
var MSG_CANCEL_SELECTED = _("Cancel selected (%s)"); |
|
|
1339 |
var MSG_CANCEL_ALERT = _("This action will cancel <span class='badge'>%s</span> hold(s)."); |
1339 |
$.fn.select2.defaults.set("width", "100%" ); |
1340 |
$.fn.select2.defaults.set("width", "100%" ); |
1340 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
1341 |
$.fn.select2.defaults.set("dropdownAutoWidth", true ); |
1341 |
|
1342 |
|
Lines 1716-1721
Link Here
|
1716 |
$('.select_hold', table).prop('checked', !count); |
1717 |
$('.select_hold', table).prop('checked', !count); |
1717 |
$(this).prop('checked', !count); |
1718 |
$(this).prop('checked', !count); |
1718 |
$('.cancel_selected_holds').html(MSG_CANCEL_SELECTED.format($('.holds_table .select_hold:checked').length)); |
1719 |
$('.cancel_selected_holds').html(MSG_CANCEL_SELECTED.format($('.holds_table .select_hold:checked').length)); |
|
|
1720 |
$('#cancel_hold_alert').html( MSG_CANCEL_ALERT.format($('.holds_table .select_hold:checked').length)); |
1719 |
localStorage.selectedHolds = $('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')); |
1721 |
localStorage.selectedHolds = $('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')); |
1720 |
}); |
1722 |
}); |
1721 |
|
1723 |
|
Lines 1724-1729
Link Here
|
1724 |
var count = $('.select_hold:not(:checked)', table).length; |
1726 |
var count = $('.select_hold:not(:checked)', table).length; |
1725 |
$('.select_hold_all', table).prop('checked', !count); |
1727 |
$('.select_hold_all', table).prop('checked', !count); |
1726 |
$('.cancel_selected_holds').html(MSG_CANCEL_SELECTED.format($('.holds_table .select_hold:checked').length)); |
1728 |
$('.cancel_selected_holds').html(MSG_CANCEL_SELECTED.format($('.holds_table .select_hold:checked').length)); |
|
|
1729 |
$('#cancel_hold_alert').html( MSG_CANCEL_ALERT.format($('.holds_table .select_hold:checked').length)); |
1727 |
localStorage.selectedHolds = $('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')); |
1730 |
localStorage.selectedHolds = $('.holds_table .select_hold:checked').toArray().map(el => $(el).data('id')); |
1728 |
}); |
1731 |
}); |
1729 |
|
1732 |
|
1730 |
- |
|
|