Bug 41149: Replace replaceWith() with empty() and append()

To test:

1. Set AllowRenewalOnHoldOverride to 'Dont allow'
2. Set  OverduesBlockRenewing to "block renewing"
3. Checkout an item and mark it as overdue.
4. Place a hold on that item to someone else
5. Now go look at the issues table for that patron/item
6. Check "Override renewal restrictions:"
7. Now a checkbox should appear in the "Renew" column, check it.
8. Click "Renew selected items"
9. After the "Renew failed: on hold" appears the spinning icon should
   disappear.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit d51dc1fc69)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Lucas Gass 2025-10-30 20:26:08 +00:00 committed by Paul Derscheid
parent 9b9b2ee4c9
commit 9fb160eca8
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 2 deletions

View File

@ -1036,8 +1036,7 @@ $(document).ready(function () {
}
refresh_table = false;
}
$(id).replaceWith(content);
$(id).parent().empty().append(content);
},
error => {
console.warn("Something wrong happened: %s".format(error));