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