From be3668de252046ab10d0d3ac89d5bb2b0a9cb10a Mon Sep 17 00:00:00 2001 From: Arthur Suzuki Date: Mon, 27 Jun 2022 14:38:45 +0200 Subject: [PATCH] Revert "Bug 30884: Fix jQuery selector to correctly detect active tab" This reverts commit badc8ff6520ba98cb7fe4a1e3067c5d9919c4984. --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt index daabda9328..14dab4267b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt @@ -479,7 +479,7 @@ }); $("#patron_batchmod_form").on("submit", function(){ /* Reset form fields on inactive tabs */ - var tab = $(this).find('ul.nav-tabs li.active a').attr('href'); + var tab = $(this).find('.ui-tabs-active:first a').attr('href'); if ( tab == '#usecardnumber' ) { $("#borrowernumberuploadfile, #patron_list_id, #borrowernumberlist").val(""); } else if ( tab == '#useborrowernumber' ) { -- 2.39.5