Skip to content

Commit

Permalink
modified fitting label and handled error display
Browse files Browse the repository at this point in the history
  • Loading branch information
lrdossan committed Aug 8, 2023
1 parent 2ca110d commit 78bc0b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions caimira/apps/calculator/static/js/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ function validate_form(form) {
if ($('input[type=radio][id=from_fitting]').prop('checked')) {
if ($('#CO2_fitting_result').val() == '')
$("input[type=radio][id=no_ventilation]").prop("checked", true);
$("span.error_text").remove();
on_ventilation_type_change();
}

Expand Down
2 changes: 1 addition & 1 deletion caimira/apps/templates/base/calculator.form.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
<input type="radio" id="natural_ventilation" name="ventilation_type" value="natural_ventilation" data-enables="#DIVnatural_ventilation" data-toggle="modal" data-target="#warning_modal">
<label for="natural_ventilation">Natural</label>
<input class="ml-3" type="radio" id="from_fitting" name="ventilation_type" value="from_fitting" data-enables="#DIVfrom_fitting">
<label for="from_fitting">Fitting</label>
<label for="from_fitting">From Fitting</label>
</div>
</div>

Expand Down

0 comments on commit 78bc0b4

Please sign in to comment.