|
Lines 739-744
$(document).ready(function() {
Link Here
|
| 739 |
} |
739 |
} |
| 740 |
|
740 |
|
| 741 |
let item_ids = $(".renew:checked:visible").map((i, c) => c.value); |
741 |
let item_ids = $(".renew:checked:visible").map((i, c) => c.value); |
|
|
742 |
if ( item_ids.length == 0 ) { |
| 743 |
// Skip if no items to renew otherwise we will die in .then below |
| 744 |
alert( __("There is no items to renew.") ); |
| 745 |
return false; |
| 746 |
} |
| 742 |
|
747 |
|
| 743 |
renew_all(item_ids, renew).then(() => { |
748 |
renew_all(item_ids, renew).then(() => { |
| 744 |
// Refocus on barcode field if it exists |
749 |
// Refocus on barcode field if it exists |
| 745 |
- |
|
|