From 4d5e5cec1f3b6f90111b69467e98873d6ef0dabf Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 30 Oct 2025 20:26:08 +0000 Subject: [PATCH] Bug 41149: Replace replaceWith() with empty() and append() --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 185a5488db5..f03640b7f4a 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -1014,8 +1014,7 @@ $(document).ready(function () { } refresh_table = false; } - - $(id).replaceWith(content); + $(id).parent().empty().append(content); }, error => { console.warn("Something wrong happened: %s".format(error)); -- 2.39.5