From 928892a446bba5324a019066f4bd95c233038072 Mon Sep 17 00:00:00 2001 From: Christina Chortaria Date: Sat, 27 May 2023 11:13:32 -0400 Subject: [PATCH] When multiple checked selectboxes and deselect one, preserve the active request button --- app/assets/javascripts/requests/requests.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/requests/requests.js b/app/assets/javascripts/requests/requests.js index 726018211..30250c64a 100644 --- a/app/assets/javascripts/requests/requests.js +++ b/app/assets/javascripts/requests/requests.js @@ -140,7 +140,9 @@ $(function() { if (selected && deMode && deLocation) { activateRequestButton(); } else { - deactivateRequestButton(); + if ($('input:checkbox').filter(':checked').length < 1){ + deactivateRequestButton(); + } } }