From f741be3bae3c672ce5a2cdce4242167d24df60dd Mon Sep 17 00:00:00 2001 From: Benard Ebinu Date: Tue, 2 Jan 2018 10:12:54 -0800 Subject: [PATCH] DIV-641: when spousal support order and property/debt order is unselected, hide the entire error message panel, not just specific error messages --- edivorce/apps/core/static/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edivorce/apps/core/static/js/main.js b/edivorce/apps/core/static/js/main.js index d47459a1..120603f1 100755 --- a/edivorce/apps/core/static/js/main.js +++ b/edivorce/apps/core/static/js/main.js @@ -377,14 +377,14 @@ $(function () { // if user still wants to proceed(click next again), let them proceed to next page // DIV-529 Separate alert for child support $('input[name="want_which_orders"]').on('click', function() { - if ($(".checkbox-group input:checkbox").not(":checked").length === 0 ) { - $("#unselected_orders_alert").hide(); + if ($('.show-order-alert-input').not(':checked').length === 0 ) { + $('#unselected_orders_alert').hide(); } // If the user has clicked the next button once, then make if($('#check_order_selected').data('proceed') === true) { if ($('.show-order-alert-input').not(':checked').length > 0 ) { - $("#unselected_orders_alert").show(); + $('#unselected_orders_alert').show(); } } });