Lines 738-757
$(document).ready(function() {
Link Here
|
738 |
|
738 |
|
739 |
let item_ids = $(".renew:checked:visible").map((i, c) => c.value); |
739 |
let item_ids = $(".renew:checked:visible").map((i, c) => c.value); |
740 |
|
740 |
|
741 |
renew_all(item_ids, renew).then(() => { |
741 |
if( item_ids.length > 0 ){ |
742 |
// Refocus on barcode field if it exists |
742 |
renew_all(item_ids, renew).then(() => { |
743 |
if ( $("#barcode").length ) { |
743 |
// Refocus on barcode field if it exists |
744 |
$("#barcode").focus(); |
744 |
if ( $("#barcode").length ) { |
745 |
} |
745 |
$("#barcode").focus(); |
|
|
746 |
} |
746 |
|
747 |
|
747 |
if ( refresh_table ) { |
748 |
if ( refresh_table ) { |
748 |
RefreshIssuesTable(); |
749 |
RefreshIssuesTable(); |
749 |
} |
750 |
} |
750 |
$('#RenewChecked, #CheckinChecked').prop('disabled' , true ); |
751 |
$('#RenewChecked, #CheckinChecked').prop('disabled' , true ); |
751 |
}); |
752 |
}); |
|
|
753 |
|
754 |
// Prevent form submit |
755 |
return false; |
756 |
} else { |
757 |
alert(_("There are no items to be renewed.")); |
758 |
} |
752 |
|
759 |
|
753 |
// Prevent form submit |
|
|
754 |
return false; |
755 |
}); |
760 |
}); |
756 |
|
761 |
|
757 |
$("#RenewAll").on("click",function(){ |
762 |
$("#RenewAll").on("click",function(){ |
758 |
- |
|
|