From 4e26cb926955f768210a1b21b2a585b424e999b5 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 --- 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.46.0