From 2b16510a16c8284099c88e4eb8147dfec1d7dcca Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Mon, 20 May 2024 16:23:24 +0000 Subject: [PATCH] Bug 36899: (follow-up) Prevent disabling when clicking twice --- koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt index 6588dc0101..c7d99f9921 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt @@ -1693,9 +1693,9 @@ $('.any_specific').click(function() { const fieldset = $(this).find('fieldset:first'); - $('.enable_request_specific, .enable_request_any').removeClass('enabled'); if ( fieldset.hasClass('disabled') ) { + $('.enable_request_specific, .enable_request_any').removeClass('enabled'); const specific_cb = $(this).find('#requestspecificitem'); const any_cb = $(this).find('#requestany'); -- 2.39.2