Browse Source

DIV-641: when spousal support order and property/debt order is unselected, hide the entire error message panel, not just specific error messages

pull/160/head
Benard Ebinu 8 years ago
parent
commit
f741be3bae
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      edivorce/apps/core/static/js/main.js

+ 3
- 3
edivorce/apps/core/static/js/main.js View File

@ -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();
}
}
});


Loading…
Cancel
Save