Browse Source

DIV-959: Removed default value from number field on prequalification step 4.

pull/160/head
Charles Shin 6 years ago
parent
commit
0cbdc996b0
2 changed files with 2 additions and 9 deletions
  1. +0
    -7
      edivorce/apps/core/static/js/main.js
  2. +2
    -2
      edivorce/apps/core/templates/prequalification/step_04.html

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

@ -1234,10 +1234,3 @@ $(".question-well").click(function () {
$('.no-collapse').on('click', function (e) { $('.no-collapse').on('click', function (e) {
e.stopPropagation(); e.stopPropagation();
}); });
// Insert default value to number fields
$('.number-field-default-zero').each(function() {
if($(this).val() === '') {
$(this).val('0');
}
});

+ 2
- 2
edivorce/apps/core/templates/prequalification/step_04.html View File

@ -129,13 +129,13 @@
<div class="reveal question-well"> <div class="reveal question-well">
<h3>How many children are under the age of 19?</h3> <h3>How many children are under the age of 19?</h3>
{% input_field type="number" class="number-field-default-zero" name="number_children_under_19" min="0" data_target_id="number_children_under_19" %}
{% input_field type="number" name="number_children_under_19" min="0" data_target_id="number_children_under_19" %}
</div> </div>
<div class="reveal question-well"> <div class="reveal question-well">
<h3>How many children are 19 years or older?</h3> <h3>How many children are 19 years or older?</h3>
{% input_field type="number" class="number-field-default-zero" name="number_children_over_19" min="0" data_target_id="number_children_over_19" data_related_id="financial_support" data_target_class="not-disqualified-age" data_reveal_class="true" data_reveal_condition=">0" %}
{% input_field type="number" name="number_children_over_19" min="0" data_target_id="number_children_over_19" data_related_id="financial_support" data_target_class="not-disqualified-age" data_reveal_class="true" data_reveal_condition=">0" %}
</div> </div>
<div class="reveal question-well" id="financial_support" hidden> <div class="reveal question-well" id="financial_support" hidden>


Loading…
Cancel
Save