From ed8d261edc6b333df8aea17696dca2aa8e24dc5f 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 Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- 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.5