From 541199edf8113aff64f9d03e3f8faeed755841f1 Mon Sep 17 00:00:00 2001 From: Paul Derscheid Date: Fri, 13 Sep 2024 15:31:02 +0000 Subject: [PATCH] Bug 37524: (QA follow-up) Tidy affected block in checkouts.js Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index ca3e2444c4..a27fd722cf 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -738,19 +738,18 @@ $(document).ready(function() { return next(); } - let item_ids = $(".renew:checked:visible").map((i, c) => c.value); - - if( item_ids.length > 0 ){ + let item_ids = $(".renew:checked:visible").map((_, c) => c.value); + if (item_ids.length > 0) { renew_all(item_ids, renew).then(() => { // Refocus on barcode field if it exists - if ( $("#barcode").length ) { + if ($("#barcode").length) { $("#barcode").focus(); } - if ( refresh_table ) { + if (refresh_table) { RefreshIssuesTable(); } - $('#RenewChecked, #CheckinChecked').prop('disabled' , true ); + $("#RenewChecked, #CheckinChecked").prop("disabled", true); }); // Prevent form submit @@ -758,7 +757,6 @@ $(document).ready(function() { } else { alert(_("There are no items to be renewed.")); } - }); $("#RenewAll").on("click",function(){ -- 2.39.5