Skip to content

Commit

Permalink
When multiple checked selectboxes and deselect one, preserve the acti…
Browse files Browse the repository at this point in the history
…ve request button
  • Loading branch information
christinach committed May 27, 2023
1 parent 22c41d0 commit 928892a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/requests/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ $(function() {
if (selected && deMode && deLocation) {
activateRequestButton();
} else {
deactivateRequestButton();
if ($('input:checkbox').filter(':checked').length < 1){
deactivateRequestButton();
}
}
}

Expand Down

0 comments on commit 928892a

Please sign in to comment.