From 23311c4a953c3130d4b2c71ef4f387592e29e40a 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 --- 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 6588dc01016..c7d99f99216 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.45.1